We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef71b8b commit 3eeda4aCopy full SHA for 3eeda4a
src/redux/store.ts
@@ -5,10 +5,12 @@
5
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
*/
7
8
-import { createStore, Store } from 'redux';
+import { legacy_createStore as createStore, Store } from 'redux';
9
import { Actions, AppState, reducer } from './reducer';
10
+import { setCommonStore } from '@gridsuite/commons-ui';
11
12
export const store: Store<AppState, Actions> = createStore(reducer);
13
+setCommonStore(store);
14
export type AppDispatch = typeof store.dispatch;
15
16
// to avoid to reset the state with HMR
0 commit comments