Skip to content
Source
Sign inSign up
TanStack/query

Page/Component not re rendering with react compiler and query function #9977

Send to my agent
Closedsoelen(GitHub profile, opens in a new tab) opened this issue 2 comments

Describe the bug

Hey folks,

a user from the tanstack discord group asked me to create a rep for the issue we found out yesterday. I figured out it would probably sense to also report upcoming issue here so, yeah:

https://github.com/soelen/reactcompiler-tanstackquery-issue

This project shows an issue when these 2 libs try to use a useQuery function defined in a js module.

Checkout peopleQuery.ts, App.tsx and vite.config.ts for a deeper dive into this issue.

Your minimal, reproducible example

https://github.com/soelen/reactcompiler-tanstackquery-issue

Steps to reproduce

  • Clone project linked in this issue ticket
  • Use the latest stable version of node
  • npm i
  • npm run dev
  • Checkout peopleQuery.ts, App.tsx and vite.config.ts for a deeper dive into this issue.

Expected behavior

As a user, I expect that I get a rerender after fetching data from an endpoint.

How often does this bug happen?

None

Screenshots or Videos

No response

Platform

  • OS: Ubuntu latest stable
  • Browser: Chromium latest

Tanstack Query adapter

None

TanStack Query version

5.90.12

TypeScript version

5.9.3

Additional context

No response

  1. 📝 CodeRabbit Plan Mode

    Generate an implementation plan and prompts that you can use with your favorite coding agent.

    • Create Plan
    Examples
    You can configure auto-planning by selecting labels in the issue_enrichment configuration.

    🔗 Similar Issues

    Possible Duplicates

    TanStack/query#9639 - fix(query-core, react-query): infinite re-renders in useQueries [merged] TanStack/router#5422 - fix(router-devtools-core): actually bundle solid [merged] TanStack/query#9772 - fix(core): observing "promise" needs to implicitly observe "data" [merged] TanStack/query#9813 - docs(solid-query): fix incorrect Vue.js code example in Suspense guide [merged]

    👤 Suggested Assignees


    🧪 Issue enrichment is currently in open beta.

    To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord or schedule a call!

  2. it needs to be usePeopleQuery

  3. TkDodo closed this

  4. TkDodo added labelsinvalid

Sign in to join this conversation.