fix: eslint-disable for useEffect deps in UsersPage
All checks were successful
CI Pipeline / Rust Format Check (push) Successful in 5s
CI Pipeline / Clippy Lints (push) Successful in 46s
CI Pipeline / Rust Unit Tests (push) Successful in 1m2s
CI Pipeline / Security Audit (push) Successful in 4s
CI Pipeline / Frontend Lint & Type Check (push) Successful in 14s
CI Pipeline / Build .deb & Release (push) Has been skipped
All checks were successful
CI Pipeline / Rust Format Check (push) Successful in 5s
CI Pipeline / Clippy Lints (push) Successful in 46s
CI Pipeline / Rust Unit Tests (push) Successful in 1m2s
CI Pipeline / Security Audit (push) Successful in 4s
CI Pipeline / Frontend Lint & Type Check (push) Successful in 14s
CI Pipeline / Build .deb & Release (push) Has been skipped
This commit is contained in:
@ -61,12 +61,12 @@ function AuthRestorer({ children }: { children: React.ReactNode }) {
|
||||
|
||||
// Only call restoreSession AFTER Zustand has rehydrated the persisted state
|
||||
if (useAuthStore.persist.hasHydrated()) {
|
||||
console.log('[auth] Store already hydrated, restoring session')
|
||||
console.warn('[auth] Store already hydrated, restoring session')
|
||||
doRestore()
|
||||
} else {
|
||||
console.log('[auth] Waiting for Zustand hydration...')
|
||||
console.warn('[auth] Waiting for Zustand hydration...')
|
||||
unsub = useAuthStore.persist.onFinishHydration(() => {
|
||||
console.log('[auth] Hydration complete, restoring session')
|
||||
console.warn('[auth] Hydration complete, restoring session')
|
||||
doRestore()
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user