🔥 Clean up code

This commit is contained in:
Philipp Stracker 2025-01-16 18:27:20 +01:00
parent 96128ee3e4
commit 209b7a7c88
No known key found for this signature in database
2 changed files with 1 additions and 25 deletions

View file

@ -60,28 +60,6 @@ export const setPersistent = ( prop, value ) => ( {
payload: { [ prop ]: value },
} );
/**
* Transient. Marks the store as "ready", i.e., fully initialized.
*
* @param {boolean} isReady
* @return {Action} The action.
*/
export const setIsReady = ( isReady ) => ( {
type: ACTION_TYPES.SET_TRANSIENT,
payload: { isReady },
} );
/**
* Persistent.
*
* @param {string} shape
* @return {Action} The action.
*/
export const setShape = ( shape ) => ( {
type: ACTION_TYPES.SET_PERSISTENT,
payload: { shape },
} );
/**
* Side effect. Triggers the persistence of store data to the server.
*

View file

@ -9,7 +9,7 @@
import { __ } from '@wordpress/i18n';
import { useCallback, useState } from '@wordpress/element'; // Temporary
import { useSelect, useDispatch } from '@wordpress/data';
import { useDispatch } from '@wordpress/data';
import { createHooksForStore } from '../utils';
import { STORE_NAME } from './constants';
@ -37,8 +37,6 @@ const useHooks = () => {
return {
persist,
isReady,
shape,
setShape,
};
};