🐛 Implement missing common-store action

This commit is contained in:
Philipp Stracker 2024-11-21 17:43:22 +01:00
parent 454e7c1a6d
commit f2f0329e4e
No known key found for this signature in database

View file

@ -18,6 +18,17 @@ import { STORE_NAME } from './constants';
* @property {Object?} payload - Optional payload for the action.
*/
/**
* Persistent. Set the full onboarding details, usually during app initialization.
*
* @param {{data: {}, flags?: {}}} payload
* @return {Action} The action.
*/
export const hydrate = ( payload ) => ( {
type: ACTION_TYPES.HYDRATE,
payload,
} );
/**
* Transient. Marks the onboarding details as "ready", i.e., fully initialized.
*