Is there anyway of getting refs to work without attaching them to the root store? #481
-
Some context we use keystone in two ways:
We'd rather not attach these model views to the root-store because we'd prefer to instantiate them in the react components (to decouple them from the models). so is there anyway of getting refs to work without attaching them to the root store? |
Beta Was this translation helpful? Give feedback.
Answered by
xaviergonz
Sep 14, 2022
Replies: 1 comment
-
You could use custom references that actually use the other root store to resolve the ids |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
maccman
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could use custom references that actually use the other root store to resolve the ids
https://mobx-keystone.js.org/references#custom-references