API Documentation / @pinia/colada / toCacheKey
Function: toCacheKey()
Serializes the given key (query or mutation key) to a string.
Param
The key to serialize.
See
EntryKey
Call Signature
ts
function toCacheKey(key): undefined;
Parameters
key
undefined
Returns
undefined
Call Signature
ts
function toCacheKey(key): string;
Parameters
key
Returns
string
Call Signature
ts
function toCacheKey(key): undefined | string;
Parameters
key
undefined
| EntryKey
Returns
undefined
| string