refactor(async): add scoped resource lifecycle - #562
Open
beruro wants to merge 2 commits into
Open
Conversation
This was referenced Jul 29, 2026
beruro
force-pushed
the
junyu/async-resource-lifecycle
branch
from
July 30, 2026 07:07
9c4d6e6 to
eb16aff
Compare
beruro
force-pushed
the
junyu/async-resource-lifecycle
branch
2 times, most recently
from
July 30, 2026 08:04
59189c0 to
a739c82
Compare
Pre-commit hook ran. Total eslint: 10, total circular: 0
Pre-commit hook ran. Total eslint: 10, total circular: 0
beruro
force-pushed
the
junyu/async-resource-lifecycle
branch
from
July 30, 2026 15:09
a739c82 to
d16c8e5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The legacy async-data helper does not make scope changes, stale completions, unmount cancellation, or hidden-window polling ownership explicit, allowing old requests and duplicate timers to outlive their consumer.
Solution
Potential risks