Skip to content

Commit

Permalink
Fix svelte applications not responding to application triggered reren…
Browse files Browse the repository at this point in the history
…ders (#17439)
  • Loading branch information
CarlosFdez authored Nov 23, 2024
1 parent b73ba2c commit 8186fba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/module/system/svelte/mixin.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ function SvelteApplicationMixin<
content: HTMLElement,
options: ApplicationRenderOptions,
): void {
Object.assign(this.$state, result.state);
if (options.isFirstRender) {
this.#mount = svelte.mount(this.root, { target: content, props: result });
this.#mount = svelte.mount(this.root, { target: content, props: { ...result, state: this.$state } });
}
Object.assign(this.$state, result.state);
}

protected override _onClose(options: ApplicationRenderOptions): void {
Expand Down

0 comments on commit 8186fba

Please sign in to comment.