@wpkernel/core / registerWPKernelStore
Function: registerWPKernelStore()
ts
function registerWPKernelStore<Key, State, Actions, Selectors>(key, config): StoreDescriptor<ReduxStoreConfig<State, Actions, Selectors>>;Register a WordPress data store using WPKernel defaults.
The helper wraps @wordpress/data store registration so packages can rely on consistent middleware ordering and return the created store for further wiring.
Type Parameters
Key
Key extends string
State
State
Actions
Actions extends Record<string, (...args) => unknown>
Selectors
Selectors
Parameters
key
Key
Store key used for registration
config
ReduxStoreConfig<State, Actions, Selectors>
Store configuration passed to createReduxStore
Returns
StoreDescriptor<ReduxStoreConfig<State, Actions, Selectors>>
Registered WordPress data store
