Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

add scroll agent fetch loading #140

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
remove console log
  • Loading branch information
Jxnis committed Mar 4, 2025
commit 1d9dd18f494bd0e867c9705a5d9b04dbae66b57a
2 changes: 0 additions & 2 deletions src/components/layout/AgentsContent.tsx
Original file line number Diff line number Diff line change
@@ -20,8 +20,6 @@ const AgentContent = () => {
const { allAgents: data, loading } = useAllAssistants(offset, 30);
const { ref, inView } = useInView();

console.log('VERIFIED', data?.agents);

useEffect(() => {
if (inView && !loading && hasMore) {
setOffset((prevOffset) => prevOffset + 30);