Skip to content
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

fix: aborted requests should not clear its cache afterwards if previous request was cached (#922) #923

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

Wykks
Copy link
Contributor

@Wykks Wykks commented Oct 18, 2024

I'm not super convinced with the quality of the fix, but since it's a special case, maybe it's okay like that.

Ref: #922

@Wykks Wykks force-pushed the cancel-keep-cache branch 2 times, most recently from 0a82005 to c75b493 Compare October 18, 2024 16:29
Copy link

codecov bot commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.60%. Comparing base (a7a4e31) to head (de11ef5).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #923   +/-   ##
=======================================
  Coverage   99.59%   99.60%           
=======================================
  Files          19       19           
  Lines        2498     2509   +11     
  Branches      219      223    +4     
=======================================
+ Hits         2488     2499   +11     
  Misses         10       10           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Wykks Wykks force-pushed the cancel-keep-cache branch from c75b493 to ab1fe3b Compare October 18, 2024 16:38
@Wykks Wykks changed the title fix: aborted requests do not clear its cache afterwards if previous request was cached (#922) fix: aborted requests should not clear its cache afterwards if previous request was cached (#922) Oct 18, 2024
src/interceptors/response.ts Show resolved Hide resolved
src/interceptors/response.ts Outdated Show resolved Hide resolved
test/interceptors/response.test.ts Outdated Show resolved Hide resolved
src/interceptors/response.ts Show resolved Hide resolved
test/interceptors/response.test.ts Show resolved Hide resolved
@arthurfiorette
Copy link
Owner

overall, good work!

@arthurfiorette arthurfiorette self-assigned this Oct 21, 2024
@arthurfiorette arthurfiorette linked an issue Oct 21, 2024 that may be closed by this pull request
@Wykks Wykks force-pushed the cancel-keep-cache branch from ab1fe3b to b1b3329 Compare October 21, 2024 08:40
@Wykks Wykks force-pushed the cancel-keep-cache branch 3 times, most recently from 1b54d9f to cecad5a Compare October 22, 2024 08:57
@Wykks Wykks force-pushed the cancel-keep-cache branch from cecad5a to de11ef5 Compare October 22, 2024 08:58
@arthurfiorette arthurfiorette merged commit 12af673 into arthurfiorette:main Oct 22, 2024
6 checks passed
@arthurfiorette
Copy link
Owner

thanks for your work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a way to ignore CanceledError
2 participants