Finding a workaround to common properties shared between slices. #2518
Unanswered
KamaniBhavin
asked this question in
General
Replies: 2 comments 12 replies
-
@KamaniBhavin you could try with zustand-lens |
Beta Was this translation helpful? Give feedback.
9 replies
-
The short answer is no. I wouldn't try to convince anyone, but here's some notes for anyone interested.
|
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
-
I have two distinct slices, each with identical property names. This naming convention enhances code readability. However, upon creating a store, they merge into a unified global object, potentially overwriting properties from different slices. Is there a workaround for this issue? While I recognize it may not be directly related to Zustand, any assistance in addressing this matter would be greatly appreciated.
But having a property with the same name in both slices will cause a conflict.
I would like to avoid this and have a way to define the slices in a way that they don't conflict with each other.
Is there a way to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions