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
My I/S library should support apps on both React 17 and 18.
Can I use use-local-storage-state@17 reliably for supporting both ? any drawbacks ?
No SSR, standard CRA apps
Thanks
The text was updated successfully, but these errors were encountered:
use-local-storage-state@17 can work on both React 17 and 18. It also supports SSR, no worries there.
There is only drawback — if use-local-storage-state is used in a part of an app that has concurrent rendering and while the tree is being concurrently rendered the value in the store changes it might produce inconsistent results. However, this is a big edge case.
npm ERR! Could not resolve dependency:
npm ERR! peer react@">=16.8.0 < 18" from [email protected]
It would require always running with --force flag (from dev environments, pipelines, etc) to workaround..
Any chance to loosen the React peer dependency range ?
My I/S library should support apps on both React 17 and 18.
Can I use use-local-storage-state@17 reliably for supporting both ? any drawbacks ?
No SSR, standard CRA apps
Thanks
The text was updated successfully, but these errors were encountered: