Skip to content

Conversation

@ChristopherChudzicki
Copy link
Contributor

@ChristopherChudzicki ChristopherChudzicki commented Dec 12, 2025

What are the relevant tickets?

None

Description (What does it do?)

This PR enables tanstack query devtools, see https://tanstack.com/query/v5/docs/framework/react/devtools

This enables:

  • viewing the current query data
  • simulating loading/error states easily
  • big benefit, imo: Viewing (or re-fetching) data that is fetched on the NextJS server.
    • When we make API calls on the NextJS server, the raw data isn't as easily visible in the browser.
    • Now we can inspect the QueryCache to see the raw data. In chrome extension at least, it's kind of a pain to view highly nested structures in the extension UI. But you can trigger a refetch easily to see the data show up anew in the network tab.

Note: The devtools themselves are browser extensions; this should have essentially no impact on our production bundle size, but will enable the dev tool usage in production.

Screenshots (if appropriate):

Screenshot 2025-12-12 at 1 57 08 PM Screenshot 2025-12-12 at 2 04 15 PM

How can this be tested?

  1. Download the dev tools for your favorite supported browser.
  2. Try them out. Chrome screenshot above.

Copy link
Contributor

@jonkafton jonkafton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

This can be enabled in production

Should we?

@ChristopherChudzicki ChristopherChudzicki merged commit dd33940 into main Dec 12, 2025
13 checks passed
@ChristopherChudzicki ChristopherChudzicki deleted the cc/tanstack-query-devtools branch December 12, 2025 21:15
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.

3 participants