Fix ranked feed loading - wait for session restoration and reload on auth
42f1d2aa723204221149488ba78419d18dafe16adiff --git a/ClientApp/src/pages/app-ranked-feed-page.ts b/ClientApp/src/pages/app-ranked-feed-page.tsindex 979528b..1bdb9d1 100644--- a/ClientApp/src/pages/app-ranked-feed-page.ts+++ b/ClientApp/src/pages/app-ranked-feed-page.ts@@ -116,8 +116,15 @@ export class AppRankedFeedPage extends LitElement { connectedCallback() { super.connectedCallback();- this.unsubscribe = store.subscribe(() => this.requestUpdate());- this.loadFeed();+ this.unsubscribe = store.subscribe(() => {+ this.requestUpdate();+ // Reload feed when session becomes authenticated+ if (store.isAuthenticated && store.items.length === 0 && !this.isLoading) {+ this.loadFeed();+ }+ });+ // Delay initial load to allow session restoration+ setTimeout(() => this.loadFeed(), 100); } disconnectedCallback() {