Skip to content

@lubusin/wp-frappe-data-store / createFrappeDataStore

Function: createFrappeDataStore()

createFrappeDataStore(config?): FrappeDataStore

Defined in: src/store/index.ts:16

Creates a standalone @wordpress/data Redux store descriptor configured for Frappe APIs. Does not automatically register the store with the default global data registry.

Parameters

config?

FrappeStoreConfig = {}

Configuration options specifying storeName, baseUrl, apiPath, or custom request transport.

Returns

FrappeDataStore

Store descriptor object ready for registration.

Released under the MIT License.