Releases: astoilkov/use-local-storage-state
Releases Β· astoilkov/use-local-storage-state
18.1.2
18.1.1
18.1.0
18.0.0
- β¨ React 18 support
- π For React 17 support, you should do
npm install use-local-storage-state@17
. See the react-17 branch. - π Removed
ssr
option. It's no longer needed. SSR is always enabled.
18.0.0-0
- β¨ React 18 support
17.2.0
17.1.0
17.0.1
17.0.0
- π calling
setValue()
inuseLayoutEffect()
doesn't work 65614f3 - π
removeItem()
doesn't batch updates 6b0e95b - π when calling
setValue()
during render and there are multiple instances of a hook with the samekey
it now prints a warning in the console (React prints the error). this is also the reason of the major release as it introduces a slight change in behavior that can cause issues in this very rare edge case. - β more, better tests for more reliability
- π lower package size