Failed to resolve reference #1836
-
Good day, I am new to mobx and react native and asking you for help. On the very first start of the app, when the state is empty and I am going to fetch the data from the server, I'll always get the error "Failed to resolve reference". Though, the data is loaded and the state is set. I've created 3 models and 3 stores:
I tried switching between As far as I understand, I've to use Can someone please give me a push in the right direction? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @phhoef! If you can see the data in the store in Reactotron, and it works when you reload without resetting the state, then you most likely have a race condition in your data loading, i.e. your Do you think you could include a minimal example in CodeSandbox or something similar? |
Beta Was this translation helpful? Give feedback.
Hi @phhoef!
If you can see the data in the store in Reactotron, and it works when you reload without resetting the state, then you most likely have a race condition in your data loading, i.e. your
ToolshedModel
instances are at least sometimes created before yourEquipmentModel
instances.Do you think you could include a minimal example in CodeSandbox or something similar?