full site update
This commit is contained in:
6
node_modules/astro/dist/runtime/server/hydration.js
generated
vendored
6
node_modules/astro/dist/runtime/server/hydration.js
generated
vendored
@@ -37,6 +37,8 @@ function extractDirectives(inputProps, clientDirectives) {
|
||||
extracted.hydration.componentExport.value = value;
|
||||
break;
|
||||
}
|
||||
// This is a special prop added to prove that the client hydration method
|
||||
// was added statically.
|
||||
case "client:component-hydration": {
|
||||
break;
|
||||
}
|
||||
@@ -95,7 +97,9 @@ async function generateHydrateScript(scriptOptions, metadata) {
|
||||
island.props["component-url"] = await result.resolve(decodeURI(componentUrl));
|
||||
if (renderer.clientEntrypoint) {
|
||||
island.props["component-export"] = componentExport.value;
|
||||
island.props["renderer-url"] = await result.resolve(decodeURI(renderer.clientEntrypoint));
|
||||
island.props["renderer-url"] = await result.resolve(
|
||||
decodeURI(renderer.clientEntrypoint.toString())
|
||||
);
|
||||
island.props["props"] = escapeHTML(serializeProps(props, metadata));
|
||||
}
|
||||
island.props["ssr"] = "";
|
||||
|
Reference in New Issue
Block a user