fix: disable autoFreeze of immer, even in dev mode (#1560)

Co-authored-by: kedar.netelixir <kedar.choudhary@netelixir.com>
This commit is contained in:
Kedar 2020-03-25 22:26:46 +05:30 committed by GitHub
parent c1a0d3c662
commit d604ebaffd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
import cloneDeep from 'lodash.clonedeep';
import produce from 'immer';
import produce, { setAutoFreeze } from 'immer';
import {
CLEAR_VIEWPORT,
@ -11,6 +11,8 @@ import {
SET_VIEWPORT_LAYOUT_AND_DATA,
} from './../constants/ActionTypes.js';
setAutoFreeze(false);
export const DEFAULT_STATE = {
numRows: 1,
numColumns: 1,