keep loading more posts if we have less threads
118 unmodified linesExpand all11912012112212312412512412512612712812958 unmodified lines118 unmodified linesExpand all if (result?.end) loaderState.complete(); } catch (error) { loadError = `${error}`; loaderState.error(); } finally { loading = false; }
loading = false; };
$effect(() => { const isEmpty = feedPosts.length === 0;58 unmodified lines85 unmodified lines86878889909191929394939495989697989910091 unmodified lines85 unmodified lines if (isComplete) loaderState.complete(); } catch (error) { loadError = `${error}`; loaderState.error(); } finally { loading = false; return; }
loading = false; };
$effect(() => { const isEmpty = threads.length === 0; const isEmpty = threads.length < 15; if (isEmpty && !loading && shouldLoad && !isComplete) loadMore(); });</script>
91 unmodified lines