fix: revert a couple more changes

hydratable-flag
paoloricciuti 10 months ago
parent 34abcb2eb1
commit 173dbd7ab6

@ -4,7 +4,6 @@
import { empty_comment, build_attribute_value } from './utils.js'; import { empty_comment, build_attribute_value } from './utils.js';
import * as b from '../../../../../utils/builders.js'; import * as b from '../../../../../utils/builders.js';
import { is_element_node } from '../../../../nodes.js'; import { is_element_node } from '../../../../nodes.js';
import { is_hydratable } from '../../../../../../internal/server/hydration.js';
/** /**
* @param {AST.Component | AST.SvelteComponent | AST.SvelteSelf} node * @param {AST.Component | AST.SvelteComponent | AST.SvelteSelf} node
@ -269,14 +268,13 @@ export function build_inline_component(node, expression, context) {
) )
); );
} else { } else {
const hydratable = is_hydratable(); if (dynamic) {
if (dynamic && hydratable) {
context.state.template.push(empty_comment); context.state.template.push(empty_comment);
} }
context.state.template.push(statement); context.state.template.push(statement);
if (!context.state.skip_hydration_boundaries && hydratable) { if (!context.state.skip_hydration_boundaries) {
context.state.template.push(empty_comment); context.state.template.push(empty_comment);
} }
} }

@ -32,10 +32,6 @@ export function empty() {
return EMPTY_COMMENT; return EMPTY_COMMENT;
} }
export function is_hydratable() {
return hydratable;
}
/** /**
* @param {boolean} new_hydratable * @param {boolean} new_hydratable
*/ */

Loading…
Cancel
Save