Closed alshdotme closed 7 months ago
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.
@zbeyens , any updates on this one?
None, PR's welcome
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
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.