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
MindSift CI & Docker Release / Build, Test in Container & Push (push) Successful in 1m31s
This commit is contained in:
1 parent
6343d62bab
commit
f90b0d5eb9
6 files changed
+221
-294
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user