Skip to content

Commit 3eeda4a

Browse files
Fix missing set common store (#41)
1 parent ef71b8b commit 3eeda4a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/redux/store.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@
55
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
66
*/
77

8-
import { createStore, Store } from 'redux';
8+
import { legacy_createStore as createStore, Store } from 'redux';
99
import { Actions, AppState, reducer } from './reducer';
10+
import { setCommonStore } from '@gridsuite/commons-ui';
1011

1112
export const store: Store<AppState, Actions> = createStore(reducer);
13+
setCommonStore(store);
1214
export type AppDispatch = typeof store.dispatch;
1315

1416
// to avoid to reset the state with HMR

0 commit comments

Comments
 (0)