Use actions inside different slices of state #790
Replies: 1 comment 2 replies
-
You are free to have functions in slices as long as you care not to delete those functions. For more context: #178 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone
Is it possible to somehow use actions inside different slices or should I only use them at the top level?
so that I can create for each piece, a function with the same name
I am using react-native.
below is an example of what I would like
store/index.js
store/slice1.js
store/slice2.js
Beta Was this translation helpful? Give feedback.
All reactions