Skip to content

Commit

Permalink
Yield to main between toVdom() and hydrate()
Browse files Browse the repository at this point in the history
Co-authored-by: Luis Herranz <luisherranz@gmail.com>
  • Loading branch information
westonruter and luisherranz authored Jan 25, 2024
1 parent 645c945 commit 6ac9d62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/interactivity/src/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export const init = async () => {
await yieldToMain();
const fragment = getRegionRootFragment( node );
const vdom = toVdom( node );
await yieldToMain();
hydrate( vdom, fragment );
}
}
Expand Down

0 comments on commit 6ac9d62

Please sign in to comment.