appview-less bluesky client
24
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: show fetch error on first load instead of showing all complete

ptr.pet 11a6e632 b7dd46e0

verified
+6 -2
+6 -2
src/routes/+page.svelte
··· 180 if (loading || $accounts.length === 0) return; 181 182 loading = true; 183 try { 184 await fetchTimelines($accounts); 185 loaderState.loaded(); 186 } catch (error) { 187 loadError = `${error}`; 188 loaderState.error(); 189 - } finally { 190 loading = false; 191 - // if (cursors.values().every((cursor) => cursor.end)) loaderState.complete(); 192 } 193 }; 194 195 onMount(async () => {
··· 180 if (loading || $accounts.length === 0) return; 181 182 loading = true; 183 + loaderState.status = 'LOADING'; 184 + 185 try { 186 await fetchTimelines($accounts); 187 loaderState.loaded(); 188 } catch (error) { 189 loadError = `${error}`; 190 loaderState.error(); 191 loading = false; 192 + return; 193 } 194 + 195 + loading = false; 196 + if (cursors.values().every((cursor) => cursor.end)) loaderState.complete(); 197 }; 198 199 onMount(async () => {