Skip to content

Conversation

@taras
Copy link
Member

@taras taras commented Feb 10, 2026

Motivation

A r/javascript commenter correctly pointed out that the blog opening — "Or you navigate away in the browser, and a request you no longer care about keeps running anyway" — is not true for full page navigation. Modern browsers kill all running JS, pending requests, etc. on navigation.

The actual problem is in SPAs, where route changes and component unmounts happen while async work is still in flight. That's where you get unscoped async work unless you explicitly wire cancellation.

Approach

One-line change in the opening of www/blog/2026-02-06-structured-concurrency-for-javascript/index.md:

"Or a component unmounts in your SPA, and the requests it started keep running anyway — burning battery, holding sockets, and calling callbacks into code that has already moved on."

This is technically accurate and preempts the nitpick.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 10, 2026

Open in StackBlitz

npm i https://pkg.pr.new/thefrontside/effection@1105

commit: c1f08fe

@taras taras merged commit 885f542 into v4 Feb 10, 2026
15 checks passed
@taras taras deleted the tm/blog-fix-browser-navigation-example branch February 10, 2026 15:47
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.

2 participants