Skip to content

fix: set finalizer only for fetch responses#4803

Open
tsctx wants to merge 1 commit intomainfrom
fix/set-finalizer-only-fetch
Open

fix: set finalizer only for fetch responses#4803
tsctx wants to merge 1 commit intomainfrom
fix/set-finalizer-only-fetch

Conversation

@tsctx
Copy link
Member

@tsctx tsctx commented Feb 3, 2026

Follow up of #4713 (comment)
I found that I was overlooking this part.
In the past, I added a finalizer after cloning all responses. However, doing so on unfetched responses resulted in unreachable code, making it inefficient.

@codecov-commenter
Copy link

codecov-commenter commented Feb 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.24%. Comparing base (ff6bc5a) to head (d9ad450).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4803   +/-   ##
=======================================
  Coverage   93.23%   93.24%           
=======================================
  Files         109      109           
  Lines       34100    34101    +1     
=======================================
+ Hits        31793    31797    +4     
+ Misses       2307     2304    -3     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mcollina mcollina requested a review from KhafraDev February 3, 2026 17:17
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? Can you add a test?

@tsctx tsctx force-pushed the fix/set-finalizer-only-fetch branch from b179440 to 0d2e8f7 Compare February 4, 2026 14:57
@tsctx tsctx force-pushed the fix/set-finalizer-only-fetch branch from 0d2e8f7 to d9ad450 Compare February 4, 2026 14:58
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.

3 participants