Add missing refresh action to onboarding store

This commit is contained in:
Philipp Stracker 2025-02-17 13:18:34 +01:00
parent 512574a9ad
commit 2d3b37ee17
No known key found for this signature in database

View file

@ -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();
};
}