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

Add a failing test for #18486 #18534

Closed
wants to merge 2 commits into from
Closed

Add a failing test for #18486 #18534

wants to merge 2 commits into from

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Apr 7, 2020

Failing test for #18486.
I think this matches the sandbox issue.

The pending state gets stuck:

Screenshot 2020-04-08 at 00 46 10

If you comment out the render phase update and adjust the Scheduler yield checks, then it doesn't get stuck. So I think this demonstrates the issue but the actual yields would need to be adjusted according to the fix. I don't know where the bug is yet.

@facebook-github-bot facebook-github-bot added the React Core Team Opened by a member of the React Core Team label Apr 7, 2020
@codesandbox-ci
Copy link

codesandbox-ci bot commented Apr 7, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 3236038:

Sandbox Source
magical-grothendieck-7uhbh Configuration

@sizebot
Copy link

sizebot commented Apr 7, 2020

No significant bundle size changes to report.

Size changes (stable)

Generated by 🚫 dangerJS against 3236038

@sizebot
Copy link

sizebot commented Apr 7, 2020

No significant bundle size changes to report.

Size changes (experimental)

Generated by 🚫 dangerJS against 3236038

@gaearon
Copy link
Collaborator Author

gaearon commented Apr 8, 2020

Looks like after resolving "a" and rendering it, we're calling markRootFinishedAtTime with remainingExpirationTimeBeforeCommit being 0. That sets root.firstPendingTime to 0, so next time getNextRootExpirationTimeToWorkOn also returns 0, and we decide to never work on "b".

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.

None yet

3 participants