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:
Fernando 2020-10-08 18:25:41 -03:00 committed by GitHub
parent 178278c951
commit 3fb1fbba6a
1 changed files with 1 additions and 0 deletions

View File

@ -314,6 +314,7 @@ export default compose(
invalidateResolutionForStoreSelector,
} = dispatch( ONBOARDING_STORE_NAME );
invalidateResolution( 'getProfileItems', [] );
invalidateResolution( 'getTasksStatus', [] );
return {
clearTaskStatusCache: () =>
invalidateResolutionForStoreSelector( 'getTasksStatus' ),