Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
grobitto opened this issue Mar 28, 2025 · 1 comment
Open

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

grobitto opened this issue Mar 28, 2025 · 1 comment

Comments

@grobitto
Copy link

grobitto commented Mar 28, 2025

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
Copy link
Author

grobitto commented Apr 1, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants