You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And also remove & document that the react-style automerging of objects doesn't happen. This is so we can support any type of object here without messing it up.
Possibly worth providing another util on the devboard module to do a clean state update? devboard.update(state, newProperties) which would be equivalent to Object.assign({}, state, newProperties.
could possibly expand this on the card param
card.value - current value (with support for card.state as a back-compat fallback?)
card.update() - atom.swap
card.set() - atom.reset
card.atom - the atom itself
card.merge(obj | func) react-style shallow-merge update (with support for card.setState as a back-compact fallback?)
The text was updated successfully, but these errors were encountered:
And also remove & document that the react-style automerging of objects doesn't happen. This is so we can support any type of object here without messing it up.
Possibly worth providing another util on the
devboard
module to do a clean state update?devboard.update(state, newProperties)
which would be equivalent toObject.assign({}, state, newProperties
.could possibly expand this on the
card
paramcard.value
- current value (with support forcard.state
as a back-compat fallback?)card.update()
- atom.swapcard.set()
- atom.resetcard.atom
- the atom itselfcard.merge(obj | func)
react-style shallow-merge update (with support forcard.setState
as a back-compact fallback?)The text was updated successfully, but these errors were encountered: