TanStackT
TanStack5mo ago
17 replies
brilliant-lime

Collection errors are not trackable without calling useLiveQuery

If I check collection.utils.errorCount() in a component that won't use a live query hook, the collections error utils won't trigger a rerender.

It's a bummer because I'd like to be able to check if a collection has errored in a child component, and I don't want to subscribe to a live query in the parent as it adds 10-15ms to the render duration of the parent component.

This tiny delay makes the children optimistic updates feel much less snappy
Was this page helpful?