Invalidating cache for "getTasksStatus" (https://github.com/woocommerce/woocommerce-admin/pull/5291)
This commit invalidates the cache for "getTasksStatus" to force a rerequest of the value. Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
This commit is contained in:
parent
178278c951
commit
3fb1fbba6a
|
@ -314,6 +314,7 @@ export default compose(
|
|||
invalidateResolutionForStoreSelector,
|
||||
} = dispatch( ONBOARDING_STORE_NAME );
|
||||
invalidateResolution( 'getProfileItems', [] );
|
||||
invalidateResolution( 'getTasksStatus', [] );
|
||||
return {
|
||||
clearTaskStatusCache: () =>
|
||||
invalidateResolutionForStoreSelector( 'getTasksStatus' ),
|
||||
|
|
Loading…
Reference in New Issue