You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the expected behavior
MST should work with useProxies: "ifavailable" option from mobx.
Describe the observed behavior
MST uses Object.defineProperty internally in addHiddenFinalProp/addHiddenWritableProp utils that lead to crash in ifavailable mode.
See also #2876@mobx
Since mobx@6.3.0 released with a convenient defineProperty from object-api, it seems to be a good idea to use it in MST.
I'm actually working on PR right now and will add it as soon as I can.
The text was updated successfully, but these errors were encountered:
BATCOH
changed the title
Compatibility with MobX 6 useProxies: "ifavailable" option.
Compatibility with MobX 6 useProxies: "ifavailable" option
Apr 23, 2021
Bug report
Sandbox link or minimal reproduction code
https://codesandbox.io/s/mobx-state-tree-todolist-ifavailable-t9w2z?file=/index.js
Describe the expected behavior
MST should work with
useProxies: "ifavailable"
option frommobx
.Describe the observed behavior
MST uses
Object.defineProperty
internally inaddHiddenFinalProp
/addHiddenWritableProp
utils that lead to crash inifavailable
mode.See also #2876@mobx
Since
mobx@6.3.0
released with a convenientdefineProperty
fromobject-api
, it seems to be a good idea to use it in MST.I'm actually working on PR right now and will add it as soon as I can.
The text was updated successfully, but these errors were encountered: