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:
1 parent
2054ee0b73
commit
9904566513
2 files changed
+69
-66
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user