Skip to content

Conversation

@eps1lon
Copy link
Collaborator

@eps1lon eps1lon commented Dec 19, 2024

Summary

ensureRootIsScheduled will bail out of flushing passive effects if it thinks the commit is suspended. So we need to make sure we clear the cancelPendingcommit callback since we use that to check if a commit is suspended.

How did you test this change?

@vercel
Copy link

vercel bot commented Dec 19, 2024

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

Name Status Preview Comments Updated (UTC)
react-compiler-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 3:27pm

@react-sizebot
Copy link

The size diff is too large to display in a single comment. The GitHub action for this pull request contains an artifact called 'sizebot-message.md' with the full message.

Generated by 🚫 dangerJS against d94334a

@eps1lon eps1lon changed the title Turn off enableYieldingBeforePassive Ensure passive effects are flushed after a suspended commit resolves Dec 19, 2024
@eps1lon eps1lon requested a review from sebmarkbage December 19, 2024 15:35
@eps1lon eps1lon marked this pull request as ready for review December 19, 2024 15:35
Copy link
Collaborator

@sebmarkbage sebmarkbage left a comment

Choose a reason for hiding this comment

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

Seems sketchy but ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants