feat: add error tracking and retry methods to query collection utils #441
Mergedlucasweng(GitHub profile, opens in a new tab)merged 7 commits into
main fromrefs/pull/441/headmerged by KyleAMathews(GitHub profile, opens in a new tab) - @@ -573,3 +593,8 @@573593 // Mark collection as ready after first successful query result574594 markReady()575595 } else if (result.isError) {596+ // This prevents double counting when QueryObserver calls subscribe twice597+ if (lastError !== result.error) {598+ lastError = result.error599+ errorCount++600+ }
KyleAMathews(GitHub profile, opens in a new tab) approved these changes
KyleAMathews(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
More templates
@tanstack/db
@tanstack/db-ivm
@tanstack/electric-db-collection
@tanstack/query-db-collection
@tanstack/react-db
@tanstack/solid-db
@tanstack/svelte-db
@tanstack/trailbase-db-collection
@tanstack/vue-db
commit:
d7e8009