# toHashableKeySegment

> **toHashableKeySegment**(`value`): `unknown`

Defined in: [utils/helper.ts:25](https://github.com/B3Pay/ic-reactor/blob/2de45f357e6c8bcfa7cb2aa71eff7a059eacdf01/packages/core/src/utils/helper.ts#L25)

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.

## Parameters

### value

`unknown`

## Returns

`unknown`