query icon indicating copy to clipboard operation
query copied to clipboard

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

Open grobitto opened this issue 9 months ago • 1 comments

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

grobitto avatar Mar 28 '25 19:03 grobitto

Now it got even worse: I got values from different queries with different queryKeys mixed up in the same reconcile call.

Reproducing 100% in my complex app, but can't create a simple example yet. Probably this issues are connected but if not please let me know I will invest some more time to reproduce this behavior in sandbox.

grobitto avatar Apr 01 '25 09:04 grobitto