Skip to content

fix: bigint serialization error in query keys - #4796

Open
aiiiden wants to merge 2 commits into
wevm:mainfrom
aiiiden:main
Open

fix: bigint serialization error in query keys#4796
aiiiden wants to merge 2 commits into
wevm:mainfrom
aiiiden:main

Conversation

@aiiiden

@aiiiden aiiiden commented Sep 24, 2025

Copy link
Copy Markdown

Problem

Query keys containing bigint values were causing serialization errors when used with TanStack Query's caching mechanism. This happened because JSON.stringify() cannot serialize bigint values directly, leading to runtime errors like:

TypeError: Do not know how to serialize a BigInt

Solution

Updated query key generation functions to use the existing serialize utility function, which properly handles bigint values by converting them to a serializable format before creating query keys.

@changeset-bot

changeset-bot Bot commented Sep 24, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b20ac24

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@wagmi/core Minor
@wagmi/connectors Major
wagmi Patch
@wagmi/vue Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Sep 24, 2025

Copy link
Copy Markdown

@aiiiden is attempting to deploy a commit to the Wevm Team on Vercel.

A member of the Team first needs to authorize it.

@jxom
jxom force-pushed the main branch 2 times, most recently from 27f0d04 to 7d15f06 Compare September 24, 2025 22:39
@tmm
tmm force-pushed the main branch 2 times, most recently from 002f089 to 058c8c1 Compare December 23, 2025 15:52
@tmm
tmm force-pushed the main branch 2 times, most recently from 5dea669 to 0458902 Compare January 23, 2026 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant