substitutefor

Contribute to the catalog

Improve Zustand

Help someone find the right substitute. Share what you know, explain its limits, and show your sources.

Keep useful details and sources from the current draft as you make your changes.

Sign in or create an account ↗ to earn credit. You can also submit anonymously and save a private receipt. Contributions go to review before publication.

Your own projects are welcome, and an AI assistant can contribute on your behalf. Describe the project accurately and cite sources. You can submit immediately; no minimum karma or prior reviews are required.

1

Identify the subject

Which product or service are you writing about?

This entry can substitute forOptional

Choose the product this entry can replace. For example, when editing GIMP, choose Photoshop to describe GIMP as a substitute for Photoshop. Use “unknown” if the evidence does not show whether the task is supported; “unsupported” means the evidence shows it cannot do the task.

0 of 200 substitute relationships.

Draft comparisons

These comparisons link to articles by their planned address. Edit them under Structured data.

  • redux-toolkit — Shared client application state and selected persisted state
2

Write & cite

Help readers understand what it does and where it falls short.

Article sections and citations
Sources for the overview

Sources

Reuse throughout the article

Add each source once. Select it under the paragraphs it supports.

Source 1 · Zustand license

Source 1

Source details

To remove this source, first uncheck its citations.

Source 2 · Zustand overview

Source 2

Source details

To remove this source, first uncheck its citations.

Source 3 · Zustand immutable state and merging

Source 3

Source details

To remove this source, first uncheck its citations.

Source 4 · Zustand v5 migration

Source 4

Source details

To remove this source, first uncheck its citations.

Source 5 · Zustand persistence

Source 5

Source details

To remove this source, first uncheck its citations.

Source 6 · Zustand Next.js guide

Source 6

Source details

To remove this source, first uncheck its citations.

Source 7 · Redux Toolkit overview

Source 7

Source details

To remove this source, first uncheck its citations.

Article sections

Explain uses, limitations, or compatibility. Give each paragraph the sources that support it.

1 · Store and subscription workflow

Section 1

Sources for paragraph 1
2 · Shallow merging is not deep mutation support

Section 2

Sources for paragraph 1
3 · Version 5 selector requirements

Section 3

Sources for paragraph 1
4 · Persist only the intended data

Section 4

Sources for paragraph 1
5 · Server rendering changes the simple-store pattern

Section 5

Sources for paragraph 1
6 · License and substitution

Section 6

Linked to redux-toolkit. Keep surrounding spaces so the text reads naturally.

Sources for paragraph 1
Structured data Advanced

For agents and detailed edits, including links within paragraphs. Follow the article schema, or use the API. Applying JSON replaces the body, references, article address, and draft comparisons shown here.

Include up to 200 draft comparisons, preserving the existing sources and relationships when adding more.

3

Add useful details Optional

Add what you know. You can submit without filling these in.

Capabilities5

Describe a task this product can perform, its limits, and the evidence. Use “unknown” if the evidence does not show whether the task is supported; “unsupported” means the evidence shows it cannot do the task.

Help readers find related options Optional

Have a useful detail to add? Choose a question, give a short answer, and reuse an article source. Skip this section if you prefer.

Which article sources support this answer?
Only saved answers are included. A blank section is fine.
Screenshots Optional

Show the website or a useful part of its interface. Add up to three still PNG, JPEG or WebP images, each up to 5 MiB. Screenshot guidelines ↗

Crop to the relevant screen. Remove personal information, credentials, account balances and private messages. Images keep their stated rights; they are not automatically CC0.

Sign in to upload screenshots. You can submit the article without them.

License, other names & status
Sources for the license or business model
4

Check & submit

Give reviewers a clear summary and a source they can check.

Preview your article

Zustand

MIT-licensed state-management library with hook-based React stores, selectors and optional persistence middleware.

Overview

Zustand is an open-source state-management library with a hook-based React API. A store contains values and update actions, and components subscribe to selected state. Optional middleware adds persistence. The compact interface can suit custom application state, but it does not remove the need to design immutable updates, server-rendering boundaries or stored-data migrations.[2][5]

Store and subscription workflow

A Zustand store can contain state and the actions that update it. React components select the portions they need through a hook, without a provider in the simple client-only pattern. Selecting the entire store broadens the component's subscription. This makes the API concise, but the application still decides ownership, update boundaries and which state belongs outside individual components.[2]

Shallow merging is not deep mutation support

The set function merges at one level. Updating a nested object requires retaining its other fields explicitly, rather than assuming the store recursively merges them. A replacement flag disables merging entirely. For generated code, this distinction is important: a short nested update can discard neighboring fields even though the top-level update appears reasonable. The documented state model remains immutable.[3]

Version 5 selector requirements

The v5 migration guide raises the React minimum to 18 and changes equality handling. Selectors that return fresh references can cause update loops, with useShallow or stable fallback values offered as remedies. Custom equality functions use the separate traditional APIs rather than the basic create function. These are behavioral migration requirements, not just import renames.[4]

Persist only the intended data

Persistence middleware supports several storage backends, field selection through partialize and explicit version migrations. Its default merge is shallow, which can lose newer nested defaults when older partially persisted objects are restored. Asynchronous storage also hydrates after initial rendering, so a default value is not proof that there is no saved value. The application must distinguish loading persisted state from the settled state and decide what data should be retained.[5]

Server rendering changes the simple-store pattern

The Next.js guide warns that module-global stores can be shared across requests and requires a per-request store. It also calls for matching server/client initial data and says React Server Components should not read or write the store. The page notes that further guidance is being developed, so this article retains the explicit isolation boundaries without claiming a universal framework recipe.[6]

License and substitution

Zustand is MIT-licensed. It can replace Redux Toolkit for appropriate shared client-state tasks where its store and selector model fits. Redux reducers, middleware and optional server-data caching are separate migration concerns. No measured bundle advantage, performance ranking or hands-on migration is claimed.[1][2][7]

References

  1. Zustand license

    MIT terms

    vendor · retrieved 2026-10-07
  2. Zustand overview

    Hook stores, selectors and immutable updates

    vendor · retrieved 2026-10-07
  3. Zustand immutable state and merging

    One-level merge and replacement flag

    vendor · retrieved 2026-10-07
  4. Zustand v5 migration

    React minimum, stable selector outputs and persistence changes

    vendor · retrieved 2026-10-07
  5. Zustand persistence

    partialize, version/migrate, shallow merge and asynchronous hydration

    vendor · retrieved 2026-10-07
  6. Zustand Next.js guide

    Per-request stores, matching hydration and RSC boundaries

    vendor · retrieved 2026-10-07
  7. Redux Toolkit overview

    Slices, store setup and optional RTK Query

    vendor · retrieved 2026-10-07

Also included: 5 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.

Contribution type

Agree to CC0 above to submit your contribution.