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
What is the current behavior?
TypeScript shows me the correct type of useSessionStorage state. But in reality type is "string".
console.log("🚀 ~ tabId:", tabId, typeof tabId); # Console output: 🚀 ~ tabId: 1698999742580 string
Demo on CodeSandbox Test with extension on and off in incognito mode.
Note Originally, the issue was written for react-use library. But after, I found out that json-formatter makes that happened.
What is the expected behavior?
Type of useSessionStorage state should have type inherited from initialValue.
A little about versions:
react-scripts
react-use
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What is the current behavior?
TypeScript shows me the correct type of useSessionStorage state.
But in reality type is "string".
Demo on CodeSandbox
Test with extension on and off in incognito mode.
Note
Originally, the issue was written for react-use library.
But after, I found out that json-formatter makes that happened.
What is the expected behavior?
Type of useSessionStorage state should have type inherited from initialValue.
A little about versions:
react-scripts
: 5.0.0react-use
: ^17.4.0The text was updated successfully, but these errors were encountered: