6 ms·
I wrote a lib with a very similar API: https://github.com/zoontek/react-atomic-state https://github.com/zoontek/react-atomic-state It rely on https://github.co
by zoontek 5y ago
I wrote a lib with a very similar API: https://github.com/zoontek/react-atomic-state https://github.com/zoontek/react-atomic-state
It rely on https://github.com/facebook/react/tree/master/packages/use-subscription https://github.com/facebook/react/tree/master/packages/use-s..., which make it safe to use in concurrent mode and the implementation a lot simpler.