fix(realtime): eliminate cpu reconnect loop, singleton global connection & fix disappearing notes
MindSift CI & Docker Release / Build, Test in Container & Push (push) Successful in 1m31s

This commit is contained in:
sandrodach committed 2026-10-26 19:08:45 +01:00
1 parent 6343d62bab
commit f90b0d5eb9
6 files changed
+221 -294

No files matched your search

+3 -3
View File
@@ -1,4 +1,4 @@
import React, { useEffect, useRef, useState } from 'react';
import React, { useCallback, useEffect, useRef, useState } from 'react';
import {
Layers,
CheckSquare,
@@ -414,7 +414,7 @@ export const App: React.FC = () => {
setActiveThemeState(themeId);
};
const refreshAll = async () => {
const refreshAll = useCallback(async () => {
try {
const [meRes, deckRes, listsRes] = await Promise.all([
api.getMe(),
@@ -428,7 +428,7 @@ export const App: React.FC = () => {
} catch {
// If token expired or invalid, api.ts dispatches mindsift:unauthorized
}
};
}, []);
const checkBootAndAuth = async () => {
setBootLoading(true);