Skip to content

Commit 1392c51

Browse files
Cadienvansewera
andauthored
docs: adding note about middlewares and slices (#2378)
* docs: adding note about middlewares and slices * chore: updating slices note Co-authored-by: Blazej Sewera <[email protected]> --------- Co-authored-by: Blazej Sewera <[email protected]>
1 parent 41924df commit 1392c51

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/guides/slices-pattern.md

+2
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ export const useBoundStore = create(
113113
)
114114
```
115115

116+
Please keep in mind you should only apply middlewares in the combined store. Applying them inside individual slices can lead to unexpected issues.
117+
116118
## Usage with TypeScript
117119

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

0 commit comments

Comments
 (0)