Skip to content

Commit

Permalink
docs: adding note about middlewares and slices (#2378)
Browse files Browse the repository at this point in the history
* docs: adding note about middlewares and slices

* chore: updating slices note

Co-authored-by: Blazej Sewera <code@sewera.dev>

---------

Co-authored-by: Blazej Sewera <code@sewera.dev>
  • Loading branch information
Cadienvan and sewera committed Mar 1, 2024
1 parent 41924df commit 1392c51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/guides/slices-pattern.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ export const useBoundStore = create(
)
```

Please keep in mind you should only apply middlewares in the combined store. Applying them inside individual slices can lead to unexpected issues.

## Usage with TypeScript

A detailed guide on how to use the slice pattern in Zustand with TypeScript can be found [here](./typescript.md#slices-pattern).

0 comments on commit 1392c51

Please sign in to comment.