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 need some help on a MST issue I'm running into. I've been discussing with Yulian & Frank about this and haven't been able to find a solution.
Has anyone run into the issue where when you do extend(withRootStore) you start getting a recursion error and all your stores types are any? This seems to happen when you incorporate both actions and views, but not when its one or the other.
Tried to fix using: types.late(...), getParent(self, 1), getRoot(self)...
Here is a link to the issue that Frank put together: [https://snack.expo.dev/@frankcalise/recursive-mst —see comment in character-store.ts](https://snack.expo.dev/@frankcalise/recursive-mst —see comment in character-store.ts)
From a slack discussion in
e-mobx-state-tree
:I need some help on a MST issue I'm running into. I've been discussing with Yulian & Frank about this and haven't been able to find a solution.
Has anyone run into the issue where when you do extend(withRootStore) you start getting a recursion error and all your stores types are any? This seems to happen when you incorporate both actions and views, but not when its one or the other.
Tried to fix using: types.late(...), getParent(self, 1), getRoot(self)...
Here is a link to the issue that Frank put together: [https://snack.expo.dev/@frankcalise/recursive-mst —see comment in character-store.ts](https://snack.expo.dev/@frankcalise/recursive-mst —see comment in character-store.ts)
Another Snack where Carlin got it working:
https://snack.expo.dev/e9Cnocf5b
The text was updated successfully, but these errors were encountered: