Replies: 1 comment 3 replies
-
@LeoRedin please keep in mind you should only apply middlewares in the whole store. Applying them to individual slices can lead to unexpected issues. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here's a sample of my code and the error I'm getting:
my bound store:
the slice itself:
the problem:
the above code is running on my App.tsx file that renders my whole React Native app, what I'm trying to do is have that base store but once I'm on the mobile app I'll swith to my CustomAsyncStorage, it's just a wrapper around the AsyncStorage.
Any ideas on why that might be happening or how should I approach that?
I'm using
zustand": "^4.4.7
The error is:
TypeError: Cannot read property 'setOptions' of undefined
Beta Was this translation helpful? Give feedback.
All reactions