Skip to content

Conversation

@dajinchu
Copy link
Collaborator

@dajinchu dajinchu commented Feb 4, 2026

Bug reproduction:

  1. Create page which navigates to another page automatically (eg. in useEffect)
  2. Open that page in a new tab without opening the tab
  3. Wait 30s (hooksTimeout)
  4. Page will render error page (see tab title)
  5. When you focus the tab, the error will go away.

Calling this "weeping angels"

The reason is that Chrome and Safari do not call requestAnimationFrame for unfocused tabs.


render(callback: () => void) {
this.cancelRender();
this.frame = requestAnimationFrame(() => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this leads to onRenderClient hanging.

I do not think we need this anymore, because React is in charge of actual rendering

@dajinchu dajinchu changed the title dc/fix weeping angels Fix Weeping Angels Bug Feb 4, 2026
@dajinchu dajinchu changed the title Fix Weeping Angels Bug Fix Weeping Angels Unfocused Tab Bug Feb 4, 2026
@dajinchu dajinchu merged commit 1e7df04 into master Feb 4, 2026
1 check passed
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.

2 participants