We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useSessionStorage
What is the current behavior?
react-use/src/useSessionStorage.ts
Line 8 in e69c38e
What is the expected behavior?
It should not return void, instead it should work like vanilla useState work (returning T I guess)
useState
T
The text was updated successfully, but these errors were encountered:
Hi all! @react-hookz/web, the new library by one of react-use's former maintainers (background here and here) has a new version of useSessionStorage called useSessionStorageValue whose type declarations have been built with a bit more care than react-use's.
react-use
useSessionStorageValue
For those interested, there's an official migration guide for migrating from react-use to @react-hookz/web.
Hope this helps!
Sorry, something went wrong.
No branches or pull requests
What is the current behavior?
react-use/src/useSessionStorage.ts
Line 8 in e69c38e
What is the expected behavior?
It should not return void, instead it should work like vanilla
useState
work (returningT
I guess)The text was updated successfully, but these errors were encountered: