mobx#configure TypeScript Examples

The following examples show how to use mobx#configure. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: index.tsx    From binaural-meet with GNU General Public License v3.0 5 votes vote down vote up
configure({
    enforceActions: "never",
})
Example #2
Source File: index.tsx    From hive with MIT License 5 votes vote down vote up
configure({ enforceActions: 'observed' });
Example #3
Source File: main.ts    From hubble-ui with Apache License 2.0 5 votes vote down vote up
configure({ enforceActions: 'observed' });
Example #4
Source File: Facet.ts    From react-ecs with MIT License 5 votes vote down vote up
configure({
    enforceActions: 'never',
});
Example #5
Source File: index.tsx    From lightning-terminal with MIT License 5 votes vote down vote up
// ensure all state updates are made inside of an action
configure({ enforceActions: 'observed' });
Example #6
Source File: store.ts    From mysterium-vpn-desktop with MIT License 5 votes vote down vote up
configure({ enforceActions: "always" })
Example #7
Source File: RootStore.ts    From react-enterprise-starter-pack with MIT License 5 votes vote down vote up
configure({ enforceActions: "observed" })
Example #8
Source File: index.ts    From electron with MIT License 5 votes vote down vote up
/** ============== 严格模式 不允许在动作之外进行状态修改 ============== */
configure({ enforceActions: 'observed' });