I solved it by using create instead of createStore, and passing that result to createTrackedSelector.

AsyncStorage), } ) ); const useTrackedSelector = createTrackedSelector(store);">
const store = create(
  persist(
    subscribeWithSelector(redux(reducer, initialState as TStateWithDispatch)),
    {
      name: "myApp",
      storage: createJSONStorage(() => AsyncStorage),
    }
  )
);

const useTrackedSelector = createTrackedSelector(store);
🌐
GitHub
github.com › pmndrs › zustand › discussions › 1548
'create' is deprecated · pmndrs/zustand · Discussion #1548
Instead use import { createStore } from 'zustand/vanilla'. [DEPRECATED] Default export is deprecated. Instead use import { create } from 'zustand'. [DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use import { useStore } from 'zustand'.
Author   pmndrs
🌐
GitHub
github.com › pmndrs › zustand › discussions › 1973
`create` is deprecated, what is the alternative use? · pmndrs/zustand · Discussion #1973
Something went wrong. There was an error while loading. Please reload this page. Quote reply · - import create from 'zustand' that ☝️ is deprecated already on v4 and will be removed on v5.
Author   pmndrs
Discussions

What's the point of re-exporting * and { default } in zustand.js?
And in index, it is imported from ./react and re-exported as default too. This is what makes import create from 'zustand' work. More on stackoverflow.com
🌐 stackoverflow.com
RFC: deprecate `equalityFn` towards v5 (migration path exists)
While the primary recommendation is not specifying equalityFn (which means to use the default Object.is), some users would like to use shallow by default. We deprecate specifying equalityFn in create from zustand. More on github.com
🌐 github.com
25
6
[useStore, api] = create() is deprecated and will be removed in v4
There was an error while loading. Please reload this page More on github.com
🌐 github.com
4
August 25, 2020
The signature '(store: any): any' of 'create' is deprecated.
The signature '(store: any): any' of 'create' is deprecated. More on github.com
🌐 github.com
1
1
🌐
UNPKG
unpkg.com › browse › zustand@4.4.7 › react.d.ts
zustand - deprecated
Version: 0.0.10.0.20.0.30.0.40.0.50.0.60.1.00.1.10.1.20.1.30.2.00.2.10.2.2-beta.00.2.21.0.0-beta.01.0.0-beta.11.0.01.0.11.0.21.0.31.0.41.0.51.0.61.0.72.0.02.1.02.2.02.2.12.2.22.2.32.2.43.0.0-beta.03.0.03.0.13.0.23.0.33.1.0-beta.03.1.03.1.13.1.23.1.33.1.43.2.03.3.03.3.13.3.23.3.33.4.03.4.13...
🌐
Openbase
openbase.com › js › zustand › versions
zustand: Versions | Openbase
BREAKING CHANGE in devtools: set now requires replace introduced in v3 api. ref: https://github.com/pmndrs/zustand/issues/159#issuecomment-708417147 ... First of all, this release is 100% backward compatible, it will not break your code! The only breaking change (the create functions return value) still can work in the old way, but throws a small deprecation warning.
🌐
npm
npmjs.com › package › zustand-utils
zustand-utils - npm
September 29, 2025 - A replacement createContext from zustand/context that is deprecated in v4 and will be removed in v5.
      » npm install zustand-utils
    
Published   Sep 29, 2025
Version   2.1.1
Find elsewhere
🌐
GitHub
github.com › pmndrs › zustand › issues › 166
[useStore, api] = create() is deprecated and will be removed in v4 · Issue #166 · pmndrs/zustand
August 25, 2020 - hi guys [useStore, api] = create() is deprecated and will be removed in v4 how else will I get access to API? btw I had to go back to using API because I, weirdly, got a An unhandled error was caught from submitForm() Error: Invalid hook...
Author   torian257x
🌐
Socket
socket.dev › npm › package › zustand
zustand - npm Package Security Analysis - Socket.dev
Zustand core can be imported and used without the React dependency. The only difference is that the create function does not return a hook, but the API utilities.
🌐
UNPKG
unpkg.com › browse › zustand@4.3.7 › esm › vanilla.d.ts
zustand
type SetStateInternal<T> = { _(partial: ... Mos>) => Mutate<StoreApi<T>, Mos>; }; export declare const createStore: CreateStore; /** * @deprecated Use `import { createStore } from 'zustand/vanilla'` */ declare const _default: CreateStore; export default _default; /** * @deprecated Use ...
🌐
GitHub
github.com › xyflow › xyflow › issues › 4055
[DOCS] Zustand create implementation marked as deprecated · Issue #4055 · xyflow/xyflow
March 21, 2024 - Describe the Bug https://reactflow.dev/learn/advanced-use/state-management the zustand store init is marked as deprecated. pmndrs/zustand#1937 for me the zustand docs worked as expected: import { createWithEqualityFn } from 'zustand/trad...
Author   bogris
🌐
npm
npmjs.com › package › zustand
zustand - npm
1 week ago - Zustand core can be imported and used without the React dependency. The only difference is that the create function does not return a hook, but the API utilities.
      » npm install zustand
    
Published   May 05, 2026
Version   5.0.13
🌐
GitHub
github.com › pmndrs › zustand › discussions › 1650
Getting deprecation error when using create · pmndrs/zustand · Discussion #1650
June 17, 2024 - I'm trying to use following code, but I'm getting deprecation warning and application is not loading at all · Code: import { create } from 'zustand' import { persist, createJSONStorage } from 'zustand/middleware' export const useUserStore = create( persist( (set, get) => ({ user: 0, setUser: () => set({ user: get().user + 1 }), }), { name: 'user-storage', // name of the item in the storage (must be unique) storage: createJSONStorage(() => sessionStorage), // (optional) by default, 'localStorage' is used } ) ) Error: [DEPRECATION] Default export is deprecated.
Author   pmndrs
🌐
GitHub
github.com › pmndrs › zustand › discussions › 2184
How can I migrate zustand createContext to useStore and createStore · pmndrs/zustand · Discussion #2184
CreateStore is deprecated , in my case how can I modify my code ? Provider is used for wrapping all components. import { useLayoutEffect } from 'react'; import { create } from 'zustand'; import createContext from 'zustand/context'; import { devtools, persist } from 'zustand/middleware'; let store; const zustandContext = createContext(); export const Provider = zustandContext.Provider; export const useStore = zustandContext.useStore; export const initializeStore = (preloadedState = {}) => { return create( devtools( persist((set) => ({ ...preloadedState, setData: (data) => { set({ data, }); }, reset: () => { set(); }, })) ) ); }; export function useCreateStore(serverInitialState) { // Server side code: For SSR & SSG, always use a new store.
Author   pmndrs
🌐
GitHub
github.com › pmndrs › zustand
GitHub - pmndrs/zustand: 🐻 Bear necessities for state management in React
Zustand core can be imported and used without the React dependency. The only difference is that the create function does not return a hook, but the API utilities.
Starred by 58K users
Forked by 2.1K users
Languages   TypeScript 97.9% | JavaScript 2.1%
🌐
Twitter
twitter.com › dai_shi › status › 1612773284508225537
Daishi Kato
January 10, 2023 - JavaScript is not available · We’ve detected that JavaScript is disabled in this browser. Please enable JavaScript or switch to a supported browser to continue using twitter.com. You can see a list of supported browsers in our Help Center · Help Center · Terms of Service Privacy Policy ...
🌐
GraphQL Editor
graphqleditor.com › blog › zustand
Zustand - react state management made easy
February 19, 2023 - Rather it's the fact that most devs are reluctant to let go of Redux and get on board with anything new due to being afraid it won't get enough steam and will get deprecated in half a year.