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
Clearly describe the bug
useLocalState doesn't support optional defaultValue.
Which version of use-local-state are you using?
0.1.0
What version of React are you using use-local-state within?
16.8.0
What build/platform are you using?
New package tests.
What did you expect to happen?
Ability to define just a key without enforcing a defaultValue, ie: setLocalState<string | undefined>("KEY").
What actually happened (e.g. what warnings or errors did you get)?
Typescript errors as defaultValue is required.
The text was updated successfully, but these errors were encountered:
@PauloMFJ want to tackle this?
Sorry, something went wrong.
PauloMFJ
No branches or pull requests
useLocalState doesn't support optional defaultValue.
0.1.0
16.8.0
New package tests.
Ability to define just a key without enforcing a defaultValue, ie: setLocalState<string | undefined>("KEY").
Typescript errors as defaultValue is required.
The text was updated successfully, but these errors were encountered: