Add remove function to useLocalStorage / useSessionStorage #558
Closed
RubyHuntsman
started this conversation in
Ideas
Replies: 2 comments 3 replies
-
I was also thinking about this... |
Beta Was this translation helpful? Give feedback.
3 replies
-
Merged! Thanks |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hey 👋
It would be nice to have a function that removes saved values 🤔
Original
const [value, setValue] = useLocalStorage('test-key', 0)
Feature request
const [value, setValue, remove] = useLocalStorage('test-key', 0)
Beta Was this translation helpful? Give feedback.
All reactions