mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
✨ Add missing refresh action to onboarding store
This commit is contained in:
parent
512574a9ad
commit
2d3b37ee17
1 changed files with 13 additions and 0 deletions
|
@ -87,3 +87,16 @@ export function persist() {
|
|||
}
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Thunk action creator. Forces a data refresh from the REST API, replacing the current Redux values.
|
||||
*
|
||||
* @return {Function} The thunk function.
|
||||
*/
|
||||
export function refresh() {
|
||||
return ( { dispatch, select } ) => {
|
||||
dispatch.invalidateResolutionForStore();
|
||||
|
||||
select.persistentData();
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue