Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure to call existing listeners only (not newly added ones) #2573

Merged
merged 1 commit into from
Jul 5, 2022

Conversation

fantactuka
Copy link
Contributor

Like what we do with update and readOnly listeners #1602, add tests and fixes for command and mutation listeners to ensure we do not execute listeners that were added during current update cycle. This can cause an infinite listeners loop if we register to listener within synchronous useEffect call

@vercel
Copy link

vercel bot commented Jun 30, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
lexical ✅ Ready (Inspect) Visit Preview Jun 30, 2022 at 4:36PM (UTC)
lexical-playground ✅ Ready (Inspect) Visit Preview Jun 30, 2022 at 4:36PM (UTC)

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 30, 2022
Copy link
Contributor

@acywatson acywatson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks

@acywatson acywatson merged commit 1216064 into main Jul 5, 2022
@trueadm trueadm deleted the command-listeners branch December 18, 2022 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants