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

feat: allow fine tuning of lazy hydration strategy triggers #11530

Merged
merged 3 commits into from
Aug 7, 2024

Conversation

GalacticHypernova
Copy link
Contributor

@GalacticHypernova GalacticHypernova commented Aug 6, 2024

This PR allows for fine tuning of some hydration strategies, like requestIdleCallback and IntersectionObserver. This allows end-developers to have full control over the specifics of when and how to hydrate. This also changes some of the related types to provide better intellisense and avoid any

Copy link

github-actions bot commented Aug 7, 2024

Size Report

Bundles

File Size Gzip Brotli
runtime-dom.global.prod.js 98 kB (+7.84 kB) 37.2 kB (+2.62 kB) 33.4 kB (+2.31 kB)
vue.global.prod.js 156 kB (+8.81 kB) 56.9 kB (+2.9 kB) 50.6 kB (+2.54 kB)

Usages

Name Size Gzip Brotli
createApp 53.9 kB (+4.26 kB) 20.9 kB (+1.41 kB) 19 kB (+1.24 kB)
createSSRApp 57.8 kB (+4.6 kB) 22.5 kB (+1.54 kB) 20.5 kB (+1.37 kB)
defineCustomElement 57.9 kB (+5.95 kB) 22.2 kB (+1.93 kB) 20.2 kB (+1.71 kB)
overall 67.4 kB (+4.31 kB) 25.9 kB (+1.43 kB) 23.6 kB (+1.33 kB)

@yyx990803 yyx990803 marked this pull request as ready for review August 7, 2024 04:03
@yyx990803
Copy link
Member

yyx990803 commented Aug 7, 2024

This looks good, I'm merging this so we get it out in 3.5 beta.1 to avoid an API change during the beta phase. We can still make further adjustments during beta.

@yyx990803 yyx990803 merged commit 261c8b1 into vuejs:minor Aug 7, 2024
7 checks passed
@GalacticHypernova GalacticHypernova deleted the patch-2 branch August 7, 2024 07:48
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.

3 participants