Skip to content

Delay synchronous renders using a microtask#397

Merged
hayleigh-dot-dev merged 1 commit intomainfrom
component-render-sync
Nov 1, 2025
Merged

Delay synchronous renders using a microtask#397
hayleigh-dot-dev merged 1 commit intomainfrom
component-render-sync

Conversation

@yoshi-monster
Copy link
Contributor

@yoshi-monster yoshi-monster commented Nov 1, 2025

The first render stays synchronous to make sure the DOM is setup properly for context events. We don't have to cancelAnimationFrame anymore since when we have a timer set already but we want to render synchronously, it will definitely always will render in the current frame.

@hayleigh-dot-dev hayleigh-dot-dev merged commit bdff64e into main Nov 1, 2025
1 check passed
@hayleigh-dot-dev hayleigh-dot-dev deleted the component-render-sync branch November 1, 2025 11:42
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