[repro] Test multiple useLiveQuery instances with where + orderBy (issue #1208)#1226
Open
claude[bot] wants to merge 2 commits intomainfrom
Open
[repro] Test multiple useLiveQuery instances with where + orderBy (issue #1208)#1226claude[bot] wants to merge 2 commits intomainfrom
claude[bot] wants to merge 2 commits intomainfrom
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>
|
1 task
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: |
Contributor
|
Size Change: 0 B Total Size: 92 kB ℹ️ View Unchanged
|
Contributor
|
Size Change: 0 B Total Size: 3.7 kB ℹ️ View Unchanged
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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