Skip to content
public-library›Rules›Zustand›Keep each store focused on one domain

Keep each store focused on one domain

Create one store per feature or client-state domain, such as workspace UI or editor selection, instead of one app-wide store. Use slices only when several state areas genuinely need to share actions or middleware in one store.

In the full rule