Add thunk support for < WP 5.9 (https://github.com/woocommerce/woocommerce-blocks/pull/8136)
This commit is contained in:
parent
b1d5976163
commit
88b19bceb4
|
@ -29,6 +29,7 @@ const registeredStore = registerStore< State >( STORE_KEY, {
|
|||
controls: dataControls,
|
||||
selectors,
|
||||
resolvers,
|
||||
__experimentalUseThunks: true,
|
||||
} );
|
||||
|
||||
registeredStore.subscribe( pushChanges );
|
||||
|
|
|
@ -16,6 +16,7 @@ export const config = {
|
|||
reducer,
|
||||
selectors,
|
||||
actions,
|
||||
__experimentalUseThunks: true,
|
||||
};
|
||||
|
||||
const store = createReduxStore( STORE_KEY, config );
|
||||
|
|
|
@ -20,6 +20,7 @@ export const config = {
|
|||
actions,
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
controls: { ...dataControls, ...sharedControls } as any,
|
||||
__experimentalUseThunks: true,
|
||||
};
|
||||
|
||||
const store = createReduxStore( STORE_KEY, config );
|
||||
|
|
Loading…
Reference in New Issue