Support sync:false for useLocalStorage hook #7217
Closed
soorajshankar
started this conversation in
Feature requests
Replies: 1 comment
-
This feature will be available in 7.16 minor release on January 14. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dependencies check up
What version of @mantine/* packages do you have in package.json?
7.14.1
What package has an issue?
@mantine/hooks
What framework do you use?
Vite
In which browsers you can reproduce the issue?
All
Describe the bug
it would be nice to have a way to control the sync behavior, right now the sync is enabled across tabs by default.
It would be nice if it can be controlled in this way
If possible, include a link to a codesandbox with a minimal reproduction
No response
Possible fix
add another hook prop sync that defaults to true, and make sure it dispatch storage event only if the sync is true.
Self-service
Beta Was this translation helpful? Give feedback.
All reactions