undux icon indicating copy to clipboard operation
undux copied to clipboard

Functional updater form for store.set()

Open jackwlee01 opened this issue 6 years ago • 0 comments

store.set() should support the functional form, as per https://reactjs.org/docs/hooks-reference.html#functional-updates, in order update the state based on an instruction, instead of the current value (which may be out of date in an async scenario).

jackwlee01 avatar Feb 07 '20 02:02 jackwlee01