-
Hi, I tried to use references inside my project but I couldn't get it to work as intended. Wasn't sure if it was something in my project causing it so I tried it with fresh new installation and I keep getting same error. So I was hoping you could help me out and point me in the right direction if I'm doing something wrong. So basically I followed getting started guide and installed
The error I receive I tried using Any help would be appreciated. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey @msamec - just wanted to let you know I saw this and I've been poking around as well. I don't know the exact cause of the invalidation, but here are two things I think might be happening;
Other than the invalidation event firing, are you seeing any errors at runtime based on your usage? |
Beta Was this translation helpful? Give feedback.
-
The todo you created is not attached to the rootStore, so it will result in a The following should work: const store = RootStore.create()
store.addUser({ id: "1", name: "User" })
store.addTodo({ id: "1", name: "Todo", user: "1" }); |
Beta Was this translation helpful? Give feedback.
The todo you created is not attached to the rootStore, so it will result in a
invalidSnapshotReference
when it tries to resolve up the user.The following should work: