-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Inline hydration directive scripts #3605
Conversation
🦋 Changeset detectedLatest commit: 86b1e85 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
⚖️ Bundle Size CheckLatest commit: 86b1e85
|
I'm really excited for this, it'll boost perfs when using lots of components. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😍 This is very cool! Nice work!
@@ -2,6 +2,16 @@ | |||
// Do not import this file directly, instead import the prebuilt one instead. | |||
// pnpm --filter astro run prebuild | |||
|
|||
type directiveAstroKeys = string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this supposed to be the specific hydration method names rather than string
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My thinking here was that we might support custom directives in the future and then this might actually be any string. But I didn't really think this all the way through so this might be too confusing as is, will change it.
* Inline hydration scripts * Adds a changeset * Update directiveAstroKeys type
* Inline hydration scripts * Adds a changeset * Update directiveAstroKeys type
Changes
Astro.load
,Astro.idle
, etc.Testing
Docs
N/A, perf optimization.