Closed vkrol closed 3 years ago
Strict mode is enabled by default in MobX 6 https://mobx.js.org/configuration.html#enforceactions.
Actually, configure({ enforceActions: true }) disables enabled by default strict mode in MobX 6, because true is converted to false here https://github.com/mobxjs/mobx/blob/ddf99789daebc6a891c930bf77df132d532e090f/packages/mobx/src/api/configure.ts#L39.
configure({ enforceActions: true })
true
false
:tada: This PR is included in version 3.1.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Strict mode is enabled by default in MobX 6 https://mobx.js.org/configuration.html#enforceactions.
Actually,
configure({ enforceActions: true })
disables enabled by default strict mode in MobX 6, becausetrue
is converted tofalse
here https://github.com/mobxjs/mobx/blob/ddf99789daebc6a891c930bf77df132d532e090f/packages/mobx/src/api/configure.ts#L39.