ConrabOpto / mst-query

Query library for mobx-state-tree
MIT License
116 stars 8 forks source link

Simplify creating custom root store #7

Closed k-ode closed 3 years ago

k-ode commented 3 years ago

Creating a custom root store involves a lot of ceremony currently. This PR adds two helper functions createRootStore and createModelStore which make this easier.

Also cleans up the api surface of QueryCache with private methods.