We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1cb65c commit 70e19d5Copy full SHA for 70e19d5
src/pages/chat/pending-callbacks.ts
@@ -9,7 +9,7 @@ export interface WindowWithPendingCallbacks extends Window {
9
}
10
declare const window: WindowWithPendingCallbacks;
11
12
-window.__usePendingCallbacks = false;
+window.__usePendingCallbacks = window.__usePendingCallbacks ?? false;
13
window.__pendingCallbacks = [];
14
window.__flushOne = () => window.__pendingCallbacks.shift()?.();
15
window.__flushAll = () => {
0 commit comments