chore: add comments

This commit is contained in:
MrWindlike 2022-03-28 16:50:08 +08:00
parent 06dd2bc0c7
commit 7a85121e7a

View File

@ -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);