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
📝 CodeRabbit Plan Mode#
Generate an implementation plan and prompts that you can use with your favorite coding agent.
Examples
🔗 Similar Issues#
Possible Duplicates
🔗 Related PRs#
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:💬 Have feedback or questions? Drop into our discord or schedule a call!