FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: guard against re-entrant event emissions by devvaannsh · Pull Request #2691 · phcode-dev/phoenix · GitHub

fix: guard against re-entrant event emissions - #2691

Open
devvaannsh wants to merge 1 commit into
mainfrom
pluto/git-ff
Open

fix: guard against re-entrant event emissions#2691
devvaannsh wants to merge 1 commit into
mainfrom
pluto/git-ff

Conversation

Copy link
Copy Markdown
Member

Issue: https://github.com/orgs/phcode-dev/discussions/2685

Reason: Phoenix Code sometimes freezes immediately on startup (most likely only on Windows). This is likely caused by multiple focus events firing during startup, which results in the same event being emitted again while it is still being processed, leading to infinite recursion and a “Maximum call stack size exceeded” error.

Fix: Added a re-entry guard in EventEmitter.js where we track active events and block any re-entrant emission of the same event while it is already being processed.

Copy link
Copy Markdown

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL