mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
docs: adding note about middlewares and slices (#2378)
* 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>
This commit is contained in:
parent
41924df88f
commit
1392c51fae
@ -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).
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user