TanStack / TanStack/query

[Solid-query] reconcile called multiple times on every request

Open
#8,873 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

package: solid-query
Dominant language
TypeScript
Stars
50.3k
Forks
4.2k
Avg merge
18h 25m
Merged PRs (30d)
200

Description

Describe the bug

When I use reconcile in my solid-query, it gets called multiple times on every request.
My reproducible example has 2 reconciles on every function call, but in my production code I got up to 4 reconciles on every query call

Your minimal, reproducible example

https://stackblitz.com/edit/tanstack-query-enmbz1vx?file=src%2FCounter.tsx,package.json

Steps to reproduce

Run stackblitz sample, look at the console - every query request triggers multiple reconciles, sometimes oldData === newData

Expected behavior

only one reconcile for every request

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform
"@tanstack/solid-query": "^5.70.0",
"solid-js": "^1.9.5"
Tanstack Query adapter

solid-query

TanStack Query version

5.70.0

TypeScript version

5.5.4

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Run the linked StackBlitz reproduction and inspect src/Counter.tsx and package.json, watching the console during each query request. Trace the repeated reconcile calls in the Solid Query setup and verify the result by confirming that each request produces only one reconcile, including when oldData equals newData.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.