remove TODO - this method is only called when pending snippet exists

pull/15844/head
Rich Harris 3 months ago
parent 54e39252a5
commit f991d9d437

@ -196,10 +196,8 @@ export class Boundary {
}
#show_pending_snippet() {
const pending = this.#props.pending;
const pending = /** @type {(anchor: Node) => void} */ (this.#props.pending);
if (pending !== undefined) {
// TODO can this be false?
if (this.#main_effect !== null) {
this.#offscreen_fragment = document.createDocumentFragment();
move_effect(this.#main_effect, this.#offscreen_fragment);
@ -208,11 +206,6 @@ export class Boundary {
if (this.#pending_effect === null) {
this.#pending_effect = branch(() => pending(this.#anchor));
}
} else if (this.parent) {
throw new Error('TODO show pending snippet on parent');
} else {
throw new Error('no pending snippet to show');
}
}
commit() {

Loading…
Cancel
Save