File tree 4 files changed +8
-8
lines changed
4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -139,3 +139,6 @@ export const START_SAVING_PROJECT = 'START_SAVING_PROJECT';
139
139
export const END_SAVING_PROJECT = 'END_SAVING_PROJECT' ;
140
140
141
141
export const SET_COOKIE_CONSENT = 'SET_COOKIE_CONSENT' ;
142
+
143
+ export const CONSOLE_EVENT = 'CONSOLE_EVENT' ;
144
+ export const CLEAR_CONSOLE = 'CLEAR_CONSOLE' ;
Original file line number Diff line number Diff line change 1
- import { consoleActions } from '../reducers/console' ;
2
-
3
- export const { dispatchConsoleEvent, clearConsole } = consoleActions ;
1
+ export { dispatchConsoleEvent , clearConsole } from '../reducers/console' ;
Original file line number Diff line number Diff line change @@ -8,13 +8,12 @@ const consoleSlice = createSlice({
8
8
initialState,
9
9
reducers : {
10
10
dispatchConsoleEvent : ( state , action ) => {
11
- const messages = [ ...action . event ] ;
11
+ const messages = [ ...action . payload ] ;
12
12
return state . concat ( messages ) . slice ( - consoleMax ) ;
13
13
} ,
14
- clearConsole : ( state , action ) => [ ]
14
+ clearConsole : ( ) => [ ]
15
15
}
16
16
} ) ;
17
17
18
- export const consoleActions = consoleSlice . actions ;
19
-
18
+ export const { dispatchConsoleEvent, clearConsole } = consoleSlice . actions ;
20
19
export default consoleSlice . reducer ;
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export default function setupStore(initialState) {
24
24
middleware : ( getDefaultMiddleware ) =>
25
25
getDefaultMiddleware ( {
26
26
thunk : true ,
27
- serializableCheck : true ,
27
+ serializableCheck : false ,
28
28
// TODO: enable immutableCheck once the mutations are fixed.
29
29
immutableCheck : false
30
30
} ) . concat ( listenerMiddleware . middleware ) ,
You can’t perform that action at this time.
0 commit comments