quickload list implemented

This commit is contained in:
2026-03-03 18:29:42 -06:00
parent e5d579051d
commit 15f518c58f
3 changed files with 91 additions and 32 deletions
+5 -1
View File
@@ -30,12 +30,16 @@ const App: Component = () => {
window.addEventListener('popstate', handleLocChange);
window.addEventListener('hashchange', handleLocChange);
let isFirstRun = true;
const removeListener = pb.authStore.onChange((token) => {
console.log('[DEBUG] pb.authStore.onChange fired, token present:', !!token);
const wasAuthenticated = isAuthenticated();
setIsAuthenticated(!!token);
if (token) {
if (token && (isFirstRun || !wasAuthenticated)) {
initStore();
}
isFirstRun = false;
}, true);
onCleanup(() => {