Public Access
fix: abort old loads, stale sync state, warn before unsaved edits are lost
This commit is contained in:
1 parent
cbafa3d540
commit
9ddc50f819
28 files changed
+753
-121
No files matched your search
@@ -25,6 +25,7 @@ import PageBackground from './components/PageBackground.jsx';
|
||||
import {usePreferences} from './context/PreferencesContext.jsx';
|
||||
import {clearSession} from './utils/auth.js';
|
||||
import useSession from './hooks/useSession.js';
|
||||
import {UnsavedChangesGuard} from './hooks/useUnsavedChanges.js';
|
||||
import {logout} from './utils/api.js';
|
||||
|
||||
function App() {
|
||||
@@ -84,6 +85,7 @@ function App() {
|
||||
</Link>
|
||||
</footer>
|
||||
</div>
|
||||
<UnsavedChangesGuard/>
|
||||
<Toaster richColors position="bottom-right"/>
|
||||
</TooltipProvider>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user