We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Although zustand is an unopinionated library, here's one of recommended usages.
const useStore = create((set) => ({ storeSliceA: ..., storeSliceB: ..., storeSliceC: ..., dispatchX: () => set(...), dispatchY: () => set(...), }))
set
See Splitting the store into separate slices to define a store with separate slices.