What a persisted value's setter takes: the next value, or an updater given the current one. It is the shape of
React's SetStateAction, written out because this contract imports nothing; @practic/persist's hooks hand React's
actions to it, so a React release that changed the shape would fail their type check.
What a persisted value's setter takes: the next value, or an updater given the current one. It is the shape of React's
SetStateAction, written out because this contract imports nothing;@practic/persist's hooks hand React's actions to it, so a React release that changed the shape would fail their type check.