Skip to content

Conversation

@maciejziemichod
Copy link

Type

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

Fix potential TDZ issue in Effect.async interruption example by reordering timeoutId initialization before registering the abort callback.
This avoids a possible ReferenceError if the abort signal is already aborted or delivered synchronously, while preserving the original behavior and intent of the example. It also makes the example less confusing.

Related

  • Related Issue #
  • Closes #

@vercel
Copy link

vercel bot commented Dec 15, 2025

@maciejziemichod is attempting to deploy a commit to the Effect Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant