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
Description
When running unit tests I see the following deprecation warning in my console when using this package.
console.warn [DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.
It seems it is this line of createStore that is causing it:
createStore
middlewares.push(vanilla.createStore);
If I comment out this line, the console warning no longer propagates.
Steps
Expectation
There are no console.warns propagating.
The text was updated successfully, but these errors were encountered:
@zbeyens , any updates on this one?
Sorry, something went wrong.
None, PR's welcome
9b1cb99
Got it fixed. Note I've renamed the package to zustand-x. If you're using Jotai, take a look at jotai-x!
zustand-x
Successfully merging a pull request may close this issue.
Description
When running unit tests I see the following deprecation warning in my console when using this package.
It seems it is this line of
createStore
that is causing it:middlewares.push(vanilla.createStore);
If I comment out this line, the console warning no longer propagates.
Steps
Expectation
There are no console.warns propagating.
The text was updated successfully, but these errors were encountered: