Feat/improve cache load state (#118)

* Fix auth logout redirect and add tree node spacing

* Remove app loader animation and related cleanup

Removes custom app loader UI from index.html and useEffect in App.tsx that handled loader fade-out transition
This commit is contained in:
Chris Scott authored and GitHub committed 2026-02-08 14:20:55 -05:00
1 parent bfe7954825
commit 6b30d13124
4 files changed
+11 -45

No files matched your search

+8 -4
View File
@@ -112,10 +112,14 @@ export function AuthProvider({ children }: AuthProviderProps) {
}, [])
const logout = useCallback(async () => {
await signOut()
await refetch()
navigate('/login', { replace: true })
}, [refetch, navigate])
await signOut({
fetchOptions: {
onSuccess: () => {
window.location.href = '/login'
},
},
})
}, [])
const refreshSession = useCallback(async () => {
await refetch()