Skip to content
中文

Default query key ​

The policy implementation follows.

ts
export function retrievalQueryKey(value: unknown): string {
  const serialized = JSON.stringify(canonical(value));
  breakWhile(serialized === undefined, () => new TypeError('Query cannot be serialized'));
  return serialized!;
}

API reference, usage examples and developer guides.