Skip to content

fix: dispose failed effect setup#119

Open
medz wants to merge 1 commit into
stackblitz:masterfrom
medz:fix/effect-teardown-leaks
Open

fix: dispose failed effect setup#119
medz wants to merge 1 commit into
stackblitz:masterfrom
medz:fix/effect-teardown-leaks

Conversation

@medz
Copy link
Copy Markdown
Contributor

@medz medz commented May 15, 2026

Summary

  • prevent stopped effects/scopes from being re-subscribed when they read signals later in the same callback
  • dispose partially initialized effect() nodes when initial setup throws
  • dispose partially initialized effectScope() nodes and children when setup throws
  • add teardown regression coverage for stopped effects and failed setup paths

Fixes #118

Validation

  • npm run check
  • npm test

@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

medz added a commit to medz/alien-signals-dart that referenced this pull request May 15, 2026
Upstream PR: stackblitz/alien-signals#119

If upstream merges this fix, this commit can be treated as the synced port. If upstream closes or changes the approach, follow up against their final handling.
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.

Stopped effects can be re-subscribed and failed effect/effectScope setup can leak nodes

1 participant