How do you use types.identifier if initialization happens after your global store is created? #1890
Answered
by
andrewdang17
andrewdang17
asked this question in
Q&A
-
Say I have a root store like so
and I have this user model
My root store can't be initialized because identifier is required. My only thought is to make another store as a container until the current User is loaded but that would get annoying fast since I will have many of these types of models. |
Beta Was this translation helpful? Give feedback.
Answered by
andrewdang17
Mar 30, 2022
Replies: 1 comment
-
Nevermind I just ended up doing types.maybeNull(User) on the root store and creating an action to set it |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
andrewdang17
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nevermind I just ended up doing types.maybeNull(User) on the root store and creating an action to set it