nandi committed 1 months ago
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() {