-
Notifications
You must be signed in to change notification settings - Fork 104
Add large-scale SaaS example with live queries #682
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
|
More templates
@tanstack/angular-db
@tanstack/db
@tanstack/db-ivm
@tanstack/electric-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: 83.6 kB ℹ️ View Unchanged
|
Size Change: 0 B Total Size: 2.36 kB ℹ️ View Unchanged
|
…teLiveInfiniteQuery - New example: examples/react/saas-large with 1000+ product catalog - Features: - Live infinite queries with virtualized scrolling - Advanced filtering (search, categories, ratings, stock status) - OrderBy and where clause support in API layer - Factory pattern for live query collections with caching - Route loader preloading for product details - Modified API to accept orderBy/where as JSON strings for serialization - Added TODO.md documenting need for createLiveInfiniteQuery API - Similar to TanStack Query's prefetchInfiniteQuery - Would enable factory pattern and SSR for infinite queries - Currently only useLiveQuery supports pre-created collections 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
530f664
to
4526419
Compare
Summary
Adds a comprehensive example demonstrating TanStack DB with a large-scale SaaS application featuring:
Key Changes
New Example:
examples/react/saas-large
API Modifications
Documentation
packages/react-db/TODO.md
documenting need forcreateLiveInfiniteQuery
APIprefetchInfiniteQuery
useLiveQuery
supports pre-created collectionsTest Plan
cd examples/react/saas-large && pnpm install && pnpm dev
Related
This example demonstrates the pattern discussed in the docs and showcases real-world usage of TanStack DB in a production-like scenario.
🤖 Generated with Claude Code