Skip to content

Missing env proxy for useCreateStore

Compare
Choose a tag to compare
@jonbnewman jonbnewman released this 29 Nov 22:00
· 78 commits to master since this release

This is a hot-fix release.

  • The useCreateStore hook is (among other things) proxying a model.create() call from mobx-state-tree. In mobx-state-tree, 2 parameters are accepted in the create() call, one of them being the environment parameter.

    This was mistakenly not being proxied in v2.0.0 or v2.0.1...it has now been fixed, see the useCreateStore API documentation.

NOTE: If you are upgrading from v1.x please make sure you read the v2.0.0 release notes