index.md
This file
Path
docs/reference/index.md
53 lines · 2.6 KiB · Markdown
Last changed by
Fix README internal links for GitHub rendering (#3403)Copilotbefore adoptionda381c3
History of this fileTake it
Revamping docs - file restructuring (#3392)Danilo Brittobefore adoption8eae4e9
lines 1–9why, one step back1---2title: Reference3description: API-first reference for stores, hooks, middlewares, and integrations.4---56## APIs78Core functions for creating and configuring stores.9Fix README internal links for GitHub rendering (#3403)Copilotbefore adoptionda381c3
lines 10–13why, one step back10- [`create`](./apis/create.md) — Create a store bound to React via hooks.11- [`createStore`](./apis/create-store.md) — Create a standalone store without React.12- [`createWithEqualityFn`](./apis/create-with-equality-fn.md) — Like `create`, but with a custom equality function.13- [`shallow`](./apis/shallow.md) — Utility for shallow comparison of objects and arrays.Revamping docs - file restructuring (#3392)Danilo Brittobefore adoption8eae4e9
lines 14–18why, one step back1415## Hooks1617React hooks for reading and subscribing to store state.18Fix README internal links for GitHub rendering (#3403)Copilotbefore adoptionda381c3
lines 19–21why, one step back19- [`useStore`](./hooks/use-store.md) — Access and subscribe to a vanilla store from a React component.20- [`useStoreWithEqualityFn`](./hooks/use-store-with-equality-fn.md) — Like `useStore`, but with a custom equality function.21- [`useShallow`](./hooks/use-shallow.md) — Derive a stable reference from a selector using shallow comparison.Revamping docs - file restructuring (#3392)Danilo Brittobefore adoption8eae4e9
lines 22–26why, one step back2223## Middlewares2425Composable middleware functions for extending store behavior.26Fix README internal links for GitHub rendering (#3403)Copilotbefore adoptionda381c3
lines 27–32why, one step back27- [`persist`](./middlewares/persist.md) — Persist and rehydrate state using `localStorage` or a custom storage engine.28- [`devtools`](./middlewares/devtools.md) — Connect a store to Redux DevTools for time-travel debugging.29- [`redux`](./middlewares/redux.md) — Use a reducer and dispatch pattern similar to Redux.30- [`immer`](./middlewares/immer.md) — Write state updates with mutable syntax using Immer.31- [`combine`](./middlewares/combine.md) — Combine separate state slices into a single store with inferred types.32- [`subscribeWithSelector`](./middlewares/subscribe-with-selector.md) — Subscribe to a slice of state with selector and equality support.Revamping docs - file restructuring (#3392)Danilo Brittobefore adoption8eae4e9
lines 33–37why, one step back3334## Integrations3536In-depth guides for using Zustand alongside third-party libraries.37Fix README internal links for GitHub rendering (#3403)Copilotbefore adoptionda381c3
lines 38–40why, one step back38- [Persisting store data](./integrations/persisting-store-data.md) — Detailed guide to the `persist` middleware and storage adapters.39- [Immer middleware](./integrations/immer-middleware.md) — Detailed guide to the `immer` middleware.40- [Third-party libraries](./integrations/third-party-libraries.md) — Using Zustand with other libraries in the ecosystem.Revamping docs - file restructuring (#3392)Danilo Brittobefore adoption8eae4e9
lines 41–45why, one step back4142## Migrations4344Upgrade guides between major versions.45Fix README internal links for GitHub rendering (#3403)Copilotbefore adoptionda381c3
lines 46–47why, one step back46- [Migrating to v5](./migrations/migrating-to-v5.md) — How to upgrade from Zustand v4.47- [Migrating to v4](./migrations/migrating-to-v4.md) — How to upgrade from Zustand v3.Revamping docs - file restructuring (#3392)Danilo Brittobefore adoption8eae4e9
lines 48–52why, one step back4849## Previous versions5051APIs that existed in older versions of Zustand and are no longer recommended for new code.52Fix README internal links for GitHub rendering (#3403)Copilotbefore adoptionda381c3
line 53why, one step back53- [createContext (v3)](./previous-versions/zustand-v3-create-context.md) — The `createContext` export from `zustand/context`, deprecated in v4 and removed in v5.