🧑‍💻 Add a Reset-Store action for testing

This commit is contained in:
Philipp Stracker 2024-10-30 16:55:44 +01:00
parent 0faeb5fd6b
commit 49c24f56d0
No known key found for this signature in database
4 changed files with 20 additions and 0 deletions

View file

@ -3,6 +3,15 @@ import { apiFetch } from '@wordpress/data-controls';
import ACTION_TYPES from './action-types';
import { NAMESPACE, STORE_NAME } from '../constants';
/**
* Special. Resets all values in the onboarding store to initial defaults.
*
* @return {{type: string}} The action.
*/
export const resetOnboarding = () => {
return { type: ACTION_TYPES.RESET_ONBOARDING };
};
/**
* Non-persistent. Marks the onboarding details as "ready", i.e., fully initialized.
*