fix: use SSR format compatible with nginx SSI for props.id

pull/16820/head
Brittany Harris 2 days ago committed by Brittany Harris
parent cf35a22568
commit aa6de0dc7b

@ -365,7 +365,7 @@ export function props_id() {
hydrating &&
hydrate_node &&
hydrate_node.nodeType === COMMENT_NODE &&
hydrate_node.textContent?.startsWith(`#`)
hydrate_node.textContent?.startsWith(`$`)
) {
const id = hydrate_node.textContent.substring(1);
hydrate_next();

@ -448,7 +448,7 @@ export function once(get_value) {
*/
export function props_id(renderer) {
const uid = renderer.global.uid();
renderer.push('<!--#' + uid + '-->');
renderer.push('<!--$' + uid + '-->');
return uid;
}

Loading…
Cancel
Save