Missing env proxy for useCreateStore
This is a hot-fix release.
-
The
useCreateStore
hook is (among other things) proxying amodel.create()
call from mobx-state-tree. In mobx-state-tree, 2 parameters are accepted in thecreate()
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