From 2d11d62e131140e6f6a1978b747491291fccb52d Mon Sep 17 00:00:00 2001 From: Gabo Esquivel Date: Thu, 11 Apr 2024 17:44:39 -0600 Subject: [PATCH] chore: correct rabbit ai feedback --- .../components/shared/thread-list.tsx | 8 +++++--- bun.lockb | Bin 403392 -> 403392 bytes 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/masterbots.ai/components/shared/thread-list.tsx b/apps/masterbots.ai/components/shared/thread-list.tsx index d9841bc3..0caed832 100644 --- a/apps/masterbots.ai/components/shared/thread-list.tsx +++ b/apps/masterbots.ai/components/shared/thread-list.tsx @@ -42,7 +42,9 @@ export function ThreadList({ if (!loadMoreRef.current) return const observer = new IntersectionObserver(([entry]) => { if (entry.isIntersecting && !threads.isLoading) { - setTimeout(() => threads.refetch(), 150) + // NOTE: I think this is not required + // setTimeout(() => threads.refetch(), 150) + threads.refetch() observer.unobserve(entry.target) } }) @@ -65,9 +67,9 @@ export function ThreadList({ key={queryKey[0]} className="flex flex-col w-full gap-8 py-5" > - {threads.data.map((thread: Thread, key) => ( + {threads.data.map((thread: Thread) => ( 9@VJc|Y%Y`$4LXYjRqUP!ejqxwPTM45k2pu}*5a z0^S0X@kAz*AUz0!=()G(xdC-tK&6MqQO~89zz)o|%L_?gg9$GQk`?;GhPY8|NZW}sKc?r-q@#%FFkNL#~brW2?bkdmPwPGYy>gxcv<#fP010*9Rz1Baa!1h<_Q1-*0u PGncWJ1t7P3iv>lT9*Rvz