-
Hey I really appreciate this library, and I've been enjoying the process of experimenting with it. Thank you for answering my questions so far guys. I have a Zustand Context I have created.
I want to populate it on page load, with stuff that's in the
This throws an error. So I'm wondering, is this even possible or is it something I'm doing wrong? Error below
|
Beta Was this translation helpful? Give feedback.
Answered by
dai-shi
Dec 10, 2021
Replies: 1 comment 1 reply
-
You can do it, but the store is only created for the first mount. So, you want to use <Provider key={SOMETHING_UNIQUE_FOR_CONNECTIONS} createStore={() => createStore(CONNECTIONS)}> |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
lkdm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can do it, but the store is only created for the first mount. So, you want to use
key
.