本页还没有译文
本页 11 段还没译成日本語,下面显示的是英文原文。hashKey
还没翻译译自英文(tanstack.com)本页 11 段都还没译
function hashKey(queryKey: readonly unknown[]): string;Defined in: packages/query-core/src/utils.ts:323
Default query & mutation keys hash function. Hashes the value into a stable hash.
Parameters
queryKey
readonly unknown[]
The query or mutation key to hash.
Returns
string
The stable hash of the key, as a JSON string.
Example
// Object keys are sorted, so key order doesn't affect the hash:
hashKey(['todos', { page: 1, filter: 'done' }]) // === '["todos",{"filter":"done","page":1}]'AI 翻译查看英文原文