-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
feat(query-core): Expose retry error as failureReason
#4315
feat(query-core): Expose retry error as failureReason
#4315
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 4b47b01:
|
I would say so, yes. |
While implementing it I stumbled over:
|
I'd say this is a bug, isn't it? Why would the failureCount behave differently for mutations |
@ardeora @DamianOsipiuk if you have some time, please take a look at the PR and let me know if you agree with the api decision |
Looks good to me 👍 |
seems like the new test fails and there are also lint errors. |
Oh I am sorry, I forgot to run prettier. Haven't setup format on save in this repo yet. => Fixed Tests and linting |
Codecov ReportBase: 96.36% // Head: 92.27% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #4315 +/- ##
==========================================
- Coverage 96.36% 92.27% -4.10%
==========================================
Files 45 87 +42
Lines 2281 3558 +1277
Branches 640 899 +259
==========================================
+ Hits 2198 3283 +1085
- Misses 80 259 +179
- Partials 3 16 +13 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Added
failureReason: TError | null
to query as suggested here:#4305
Open Question: Would it make sense to add this to mutations as well?