How to share same instance across multiple trees? #1980
Unanswered
ParadiseFallen
asked this question in
Q&A
Replies: 1 comment
-
Hi @ParadiseFallen! Do you think you could include a minimal, reproducible example in e.g. a CodeSandbox? It's difficult to say what might go wrong without seeing some code. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi/ i have kinda
Window
store (window that can be closed and dragged).So i has
Sidenav
andMessages
models. (ViewModels thing). So i need to pass Window to Sidenav and messages but got errorUncaught Error: [mobx-state-tree] Cannot add an object to a state tree if it is already part of the same or another state tree. Tried to assign an object to '/window', but it lives already at '/window'
Beta Was this translation helpful? Give feedback.
All reactions