Skip to content

Commit 17b410e

Browse files
committed
fix(query-core): update bigint handling in hashKey function
1 parent 68fcf79 commit 17b410e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/query-core/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ export function hashKey(queryKey: QueryKey | MutationKey): string {
218218
queryKey,
219219
(_, val) => {
220220
if (typeof val === 'bigint') {
221-
return val.toString() + 'n'
221+
return { __TQ_BIGINT__: val.toString() }
222222
}
223223

224224
if(isPlainObject(val)) {

0 commit comments

Comments
 (0)