You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building an application with a lot of references to the same model. So I had to store it separately in some sort of entities store normalized. But it makes it impossible to fetch the parent from reference because both getParent and getParentOfType returns me the Entities store but not the store I'm referencing from.
Is it really possible to get the store which has a reference to my model?
As a workaround currently I'm using recursive references - I'm adding a reference to my Application model pointing to Job model which has reference to that Application model. Sounds really bad, but at least it works. Looking forward to a new API - it's the only thing I'm missing right now from MST.
Both you and @mweststrate did great work with MST. Thanks!
Question
I'm building an application with a lot of references to the same model. So I had to store it separately in some sort of entities store normalized. But it makes it impossible to fetch the parent from reference because both getParent and getParentOfType returns me the Entities store but not the store I'm referencing from.
Is it really possible to get the store which has a reference to my model?
Here is a little example:
https://codesandbox.io/s/ox183w4o75
The text was updated successfully, but these errors were encountered: