mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2024-11-27 08:39:59 +08:00
chore: add comments
This commit is contained in:
parent
06dd2bc0c7
commit
7a85121e7a
@ -8,6 +8,8 @@ import { AppHooks, UtilMethod } from './types';
|
||||
import { enableES5, setAutoFreeze } from 'immer';
|
||||
import './style.css';
|
||||
|
||||
// immer would make some errors when read the states, so we do these to avoid it temporarily
|
||||
// ref: https://github.com/immerjs/immer/issues/916
|
||||
enableES5();
|
||||
setAutoFreeze(false);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user