-
Notifications
You must be signed in to change notification settings - Fork 78
feat: add error tracking and retry methods to query collection utils #441
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?
feat: add error tracking and retry methods to query collection utils #441
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: |
ChatGPT's review https://chatgpt.com/share/68add190-8f64-800c-bc40-1218ca9d9e7f |
🦋 Changeset detectedLatest commit: 4626ef4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Thanks @KyleAMathews. I updated the error tracking logic and added a retry test in a7cf838 per the review. I didn't adopt the suggestion to have Edited: 62d3e86 added documentation for error tracking utils. The |
Summary
lastError
,isError
,errorCount
andclearError
methods to query collection utils per Enhanced Error Handling and Reporting for query-db-collection #347clearError
triggers a refetch, and collection operations function as expected with cached data while in an error state.Note: To keep the diff focused, this PR does not implement
onError
,onSettled
, anduseErrorBoundary
. These will be addressed in a separate PR.Test Plan