Skip to content

Commit b88bc91

Browse files
authored
Temporary fix to resolve RTK freezing reducer states (#2818)
* Temporary fix to resolve RTK freezing reducer states * Standardise comment
1 parent 0e106dd commit b88bc91

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/pages/createStore.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { configureStore } from '@reduxjs/toolkit';
2+
import { setAutoFreeze } from 'immer';
23
import { throttle } from 'lodash';
34
import createSagaMiddleware from 'redux-saga';
45

@@ -8,6 +9,9 @@ import MainSaga from '../commons/sagas/MainSaga';
89
import { generateOctokitInstance } from '../commons/utils/GitHubPersistenceHelper';
910
import { loadStoredState, SavedState, saveState } from './localStorage';
1011

12+
// FIXME: Hotfix: Disable auto freezing of states for RTK as this breaks the code evaluation sagas
13+
setAutoFreeze(false);
14+
1115
export const store = createStore();
1216

1317
export function createStore() {

0 commit comments

Comments
 (0)