react-query-questions
solid-query-questions
table-questions
virtual-questions
router-questions
react-charts-questions
ranger-questions
vue-query-questions
svelte-query-questions
bling-questions
form-questions
angular-query-questions
start-questions
db-questions
start-showcase
router-showcase
📣-announcements
How to return extra pagination info from queryFn in TanStack Table?
Using TanStack DB with Better Auth
Collections sometimes get "stuck"
NS_BINDING_ABORTED and a new one starts. It seems that when this happens enough times, or I leave the tab for long enough (not sure which), this stops and my collection becomes stuck. I can no longer see new connections being made in the network tab. Doing something on the site (like sending a new message, which should be returned by a messages collection) confirms this - it doesn't show up until I refresh.
I feel like I must have set something up wrong somewhere, but I'm not sure what. I'm using the Electric SQL API proxy approach as described in the docs. ...querying on non-primitive fields? (arrays?)
inArray, but it does the opposite of what I want, is column value within an array of values.
i'd like 'does columns array of values contain value'...creating an empty collection and ready state
What is the benefit of using an `electricCollection` over an `queryCollection`
passing arguments to collection?
localStorageCollection not saving
How to use Tanstack DB with paginated API
useInfiniteQueryUsing awaitTxId() after a backend transaction that updates multiple collections
General disabled state of collections?
React best practices (context vs hook)
Dev server hot reload removes Electric API route (TanStack Start)
routeTree.gen.ts) will remove exactly one route from my route tree, until I restart the dev server, at which point it regenerates it back in and the file is once again unchanged.
That route is consistently the one at const ApiElectricRouteImport = createFileRoute('/api/electric')()...Combined Queries Best Practice
What is the "recommended" pattern for using many-to-many relationships using a join table
obscure getKey type error on collection options
Multiple mutations to the same collection
onChange?
Is it able to cancel previous mutations or at least only keep the latest successful result, or do we have to handle that in application code? If so, are there any examples or best practices?
EDIT: Just saw this which looks promising https://github.com/TanStack/db/issues/35 - and makes me think the answer to my question is “no”....Performance Footguns? Slow on prop changes.
useQuery() with deeply nested graphql queries + prop drilling, tanstack-db + electric sql keeping all data synced and local, using useLiveQuery() to join and select exactly the data needed.
It seems part of the reason stems from the fact that the data is all there, so when every component on our Dispatch screen is on-screen and then the date prop changes, every single one of them has a change in the where clause at the same instant. A few of the collections have tens of thousands of records, and are joined with 5 others for a given component....
SubQuery doesn't seem to work
Mutations for one-to-many db schema