mobxjs / mobx-react

React bindings for MobX
https://mobx.js.org/react-integration.html
MIT License
4.85k stars 350 forks source link

[Typescript] How to define type parent store in childrent store without eslint Dependency cycle detected or any type. #872

Closed dongnh124 closed 4 years ago

dongnh124 commented 4 years ago

Such as mobxjs/mobx#1935 or Mobx documentation

danielkcz commented 4 years ago

And what is the question?

dongnh124 commented 4 years ago

And what is the question?

I try combining multiple stores with typescript. And my question is How to define type of RootStore in UserStore and TodoStore. UserStore and TodoStore in difference file with RootStore.

danielkcz commented 4 years ago

Please supply code examples of what have you tried and did not work for you for some reason. If you are looking for a "best way", I can tell you there is no such thing in development. Go with the one that feels best for you.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.