From 1392c51fae7f4896a8eb9fb2b0a05929eef15f5b Mon Sep 17 00:00:00 2001 From: Michael Di Prisco Date: Fri, 1 Mar 2024 22:39:16 +0100 Subject: [PATCH] docs: adding note about middlewares and slices (#2378) * docs: adding note about middlewares and slices * chore: updating slices note Co-authored-by: Blazej Sewera --------- Co-authored-by: Blazej Sewera --- docs/guides/slices-pattern.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/guides/slices-pattern.md b/docs/guides/slices-pattern.md index b3c058015..c006bc93a 100644 --- a/docs/guides/slices-pattern.md +++ b/docs/guides/slices-pattern.md @@ -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).