pull/16762/head
S. Elliott Johnson 1 week ago
parent 5d04b3bc2c
commit a30de03242

@ -91,7 +91,7 @@ export class Boundary {
#pending_count = 0; #pending_count = 0;
#is_creating_fallback = false; #is_creating_fallback = false;
/** @type {boolean} */
#server_rendered_pending = false; #server_rendered_pending = false;
/** /**
@ -144,9 +144,6 @@ export class Boundary {
if (hydrating) { if (hydrating) {
hydrate_next(); hydrate_next();
}
if (hydrating) {
if (this.#server_rendered_pending) { if (this.#server_rendered_pending) {
this.#hydrate_pending_content(); this.#hydrate_pending_content();
} else { } else {
@ -215,7 +212,7 @@ export class Boundary {
this.#pending_effect = null; this.#pending_effect = null;
}); });
this.pending = false; this.#pending = false;
} }
}); });
} }

@ -1,6 +1,6 @@
/** @import { Component } from '#server' */ /** @import { Component } from '#server' */
import { DEV } from 'esm-env'; import { DEV } from 'esm-env';
import { on_destroy } from './index.js'; import { async_on_destroy, on_destroy } from './index.js';
import * as e from './errors.js'; import * as e from './errors.js';
/** @type {Component | null} */ /** @type {Component | null} */
@ -72,6 +72,8 @@ export function pop() {
if (ondestroy) { if (ondestroy) {
on_destroy.push(...ondestroy); on_destroy.push(...ondestroy);
// TODO this is probably actually broken
async_on_destroy.push(...ondestroy);
} }
current_component = component.p; current_component = component.p;

@ -1,6 +1,7 @@
import { ok, test } from '../../test'; import { ok, test } from '../../test';
export default test({ export default test({
skip: true,
html: ` html: `
<p>hello</p> <p>hello</p>
`, `,

Loading…
Cancel
Save