Skip to content

Failing test: DevTools hook freezes timeline #17159

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

Closed
wants to merge 1 commit into from

Conversation

acdlite
Copy link
Collaborator

@acdlite acdlite commented Oct 21, 2019

The DevTools hook calls requestCurrentTime after the commit phase has ended, which has the accidental consequence of freezing the start time for subsequent updates. If enough time goes by, the next update will instantly expire.

I'll open potential fixes in separate PRs:

  1. Use microtask to reset current event time: Use a microtask to detect end of event #17158
  2. Don't call requestCurrentTime after commit phase has ended: Read current time without marking event start time #17160

The DevTools hook calls `requestCurrentTime` after the commit phase has
ended, which has the accidnental consequence of freezing the start
time for subsequent updates. If enough time goes by, the next update
will instantly expire.

I'll push a fix in the next commit.
@sizebot
Copy link

sizebot commented Oct 21, 2019

Size changes (experimental)

No significant bundle size changes to report.

Generated by 🚫 dangerJS against 68aa840

@sizebot
Copy link

sizebot commented Oct 21, 2019

Size changes (stable)

No significant bundle size changes to report.

Generated by 🚫 dangerJS against 68aa840

@acdlite
Copy link
Collaborator Author

acdlite commented Oct 21, 2019

Merged as part of #17160

@acdlite acdlite closed this Oct 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants