🐛 Add missing action dispatcher

This commit is contained in:
Philipp Stracker 2025-01-17 19:05:51 +01:00
parent 605760f5fb
commit 7365f75eba
No known key found for this signature in database

View file

@ -60,6 +60,14 @@ export const setPersistent = ( prop, value ) => ( {
payload: { [ prop ]: value },
} );
/**
* Transient. Changes the "ready-state" of the module.
*
* @param {boolean} state Whether the store is ready to be used.
* @return {Action} The action.
*/
export const setIsReady = ( state ) => setTransient( 'isReady', state );
/**
* Side effect. Triggers the persistence of store data to the server.
*