Skip to content

Commit

Permalink
perf: only 25 items on first render
Browse files Browse the repository at this point in the history
  • Loading branch information
gaboesquivel committed Apr 8, 2024
1 parent e15ef3e commit b13a36e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/masterbots.ai/app/(browse)/[category]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default async function BrowseCategoryPage({
if (!categoryId) throw new Error('Category id not foud')

const threads = await getBrowseThreads({
limit: 50,
limit: 25,
categoryId
})

Expand Down
2 changes: 1 addition & 1 deletion apps/masterbots.ai/app/(browse)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { getBrowseThreads, getCategories } from '@/services/hasura'
export default async function BrowsePage() {
const categories = await getCategories()
const threads = await getBrowseThreads({
limit: 50
limit: 25
})
return (
<div className="container">
Expand Down
2 changes: 1 addition & 1 deletion apps/masterbots.ai/app/b/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default async function BotThreadsPage({
const chatbotName = botNames.get(params.id)
threads = await getBrowseThreads({
chatbotName,
limit: 50
limit: 25
})

return (
Expand Down
2 changes: 1 addition & 1 deletion apps/masterbots.ai/app/u/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default async function BotThreadsPage({
if (!user) return <div className="m-auto">No user found.</div>
const threads = await getBrowseThreads({
slug: params.slug,
limit: 50
limit: 25
})
return (
<div className="container">
Expand Down

0 comments on commit b13a36e

Please sign in to comment.