Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Fix "get root" #340

Merged
merged 19 commits into from
May 21, 2020
Merged

Fix "get root" #340

merged 19 commits into from
May 21, 2020

Conversation

nirre7
Copy link
Contributor

@nirre7 nirre7 commented May 18, 2020

If one was using the "withRootStore exteension" or had something similar to this in a store
get rootStore() { return getRoot(self) as RootStore },
This could break the Typescript inference and one would the store "internals" i.e .acions, .views etc.

With this fix you'll get the stores properties and functions that you have created.
mobxjs/mobx-state-tree#951

@nirre7
Copy link
Contributor Author

nirre7 commented May 18, 2020

Not sure why ci is failing 🤔

@jamonholmgren
Copy link
Member

Tests failing aren't a problem with your branch, @nirre7. I'll get this reviewed and merged soon!

@jamonholmgren jamonholmgren merged commit 2e94b62 into infinitered:master May 21, 2020
infinitered-circleci pushed a commit that referenced this pull request May 22, 2020
# [5.1.0](v5.0.3...v5.1.0) (2020-05-22)

### Bug Fixes

* **types:** getRoot types fixed ([#340](#340) by [@nirre7](https://github.com/nirre7)) ([2e94b62](2e94b62))

### Features

* **boilerplate:** Upgrades to React Native 0.61.5, adds barrel file for models ([#341](#341) by [@nirre7](https://github.com/nirre7)) ([0c79752](0c79752))
* **deps:** Bump TS lib/target to esnext ([#343](#343) by [@robinheinze](https://github.com/robinheinze)) ([d3f9cc4](d3f9cc4))
* **navigation:** Simplifies navigation, adds helpful comments ([#338](#338) by [@jamonholmgren](https://github.com/jamonholmgren)) ([4abb814](4abb814))
@infinitered-circleci
Copy link

🎉 This PR is included in version 5.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants