fix: fix memory leaking in Chat.svelte (#21962)

* fix: fix memory leaking in Chat.svelte

* chore: remove useless chatIdUnsubscriber var

* fix: fix async tick
This commit is contained in:
Shirasawa
2026-03-01 15:04:47 -05:00
committed by GitHub
parent 2054ee0b73
commit 9904566513
2 changed files with 69 additions and 66 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ import { type Writable, writable } from 'svelte/store';
import type { ModelConfig } from '$lib/apis';
import type { Banner } from '$lib/types';
import type { Socket } from 'socket.io-client';
import type { AudioQueue } from '$lib/utils/audio';
import emojiShortCodes from '$lib/emoji-shortcodes.json';
@@ -75,7 +76,7 @@ export const banners: Writable<Banner[]> = writable([]);
export const settings: Writable<Settings> = writable({});
export const audioQueue = writable(null);
export const audioQueue = writable<AudioQueue | null>(null);
export const sidebarWidth = writable(260);