Skip to content
IC Reactor

toHashableKeySegment

toHashableKeySegment(value): unknown

Defined in: utils/helper.ts:25

Make one query-key segment safe for React Query’s JSON.stringify hashing by rendering BigInt values as strings.

Only arrays and plain objects are walked. Class instances (a Principal, a Date) are returned untouched so their existing hash is preserved — this converts what would otherwise throw, and changes nothing else.

unknown

unknown