Update Component.ts

pull/5614/head
pushkin 5 years ago committed by GitHub
parent 6fa3e91b5d
commit a85358a9ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -148,15 +148,13 @@ export function init(component, options, instance, create_fragment, not_equal, p
if (options.target) {
if (options.hydrate) {
const nodes = children(options.target);
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
$$.fragment && $$.fragment!.l(nodes);
claim_component($$.fragment, nodes);
nodes.forEach(detach);
} else {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
$$.fragment && $$.fragment!.c();
create_component($$.fragment);
}
if (options.intro) transition_in(component.$$.fragment);
if (options.intro) transition_in($$.fragment);
mount_component(component, options.target, options.anchor);
flush();
}

Loading…
Cancel
Save