-
Notifications
You must be signed in to change notification settings - Fork 166
[repro] Test multiple useLiveQuery instances with where + orderBy (issue #1208) #1226
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
base: main
Are you sure you want to change the base?
Conversation
…rBy (issue #1208) Adds comprehensive tests for the scenario described in the issue where multiple components using the same useLiveQuery with where + orderBy clauses should show consistent data. These tests cover: - Multiple useLiveQuery hooks with identical queries - Items moving in/out of filter range when updated - Rapid consecutive updates across all query instances - Rendered components with the same query showing identical data - Interleaved updates without data loss All tests currently pass, suggesting the issue may be environment-specific or require additional conditions to reproduce. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
More templates
@tanstack/angular-db
@tanstack/db
@tanstack/db-ivm
@tanstack/electric-db-collection
@tanstack/offline-transactions
@tanstack/powersync-db-collection
@tanstack/query-db-collection
@tanstack/react-db
@tanstack/rxdb-db-collection
@tanstack/solid-db
@tanstack/svelte-db
@tanstack/trailbase-db-collection
@tanstack/vue-db
commit: |
|
Size Change: 0 B Total Size: 92 kB ℹ️ View Unchanged
|
|
Size Change: 0 B Total Size: 3.7 kB ℹ️ View Unchanged
|
Summary
This PR adds comprehensive tests to attempt to reproduce the bug reported in #1208, where multiple components using
useLiveQuerywithwhere+orderByclauses show inconsistent data.Tests Added
The new test file
useLiveQuery-multiple-components.test.tsxcovers:where+orderBy+limit, testing items moving in/out of filter rangeuseLiveQueryhooks with the same query, testing consistency after updates<For>rendering the same queryResults
All tests currently pass, suggesting the issue may be:
How to Run
pnpm --filter @tanstack/solid-db test -- useLiveQuery-multiple-componentsRequest for Clarification
Since these tests pass, we need more information to reproduce the issue:
Closes: n/a (requesting clarification, no fix yet)
🤖 Generated with Claude Code