Skip to content

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

Function: getListKey() ​

getListKey(doctype, query?): string

Defined in: src/utils.ts:40

Generates a deterministic cache key for a queried resource list.

Parameters ​

doctype ​

string

The Frappe DocType name.

query? ​

FrappeListQuery = {}

The list query options.

Returns ​

string

Combined string key formatted as doctype:stringify(query).

Released under the MIT License.