Juha Pekkarinen

Results 6 comments of Juha Pekkarinen

@Svish Yes, looks like your updater function solution would work pretty well, but it relies on user to memoize `options` object in order to keep `set` stable (like `React.useState`s setter...

> Might look into that and update my PR, if anyone looks at it eventually. I think I might close my PR (#1506 ) in favor of yours, since it...

I closed my PR #1506 in favor of this one. I would use `useLatest` or similar approach for `serializer`/``deserializer` or even `set` itself to maintain referential stability similar to `React.useState`.

Hello, I would also like to know this.