Skip to content

Commit fc00184

Browse files
committed
perf: reduce initial catalog load delay from 2000ms to 500ms
1 parent 85161d2 commit fc00184

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/hooks/useCatalog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function useCatalog(userId: string, vibes: Array<LocalVibe>) {
3030

3131
const catalog = async () => {
3232
// Wait 2000ms to allow database to be fully initialized after page load
33-
await new Promise((resolve) => setTimeout(resolve, 2000));
33+
await new Promise((resolve) => setTimeout(resolve, 500));
3434
if (cancelled) return;
3535

3636
console.log(`📋 Starting catalog - ${vibes.length} vibes from useVibes`);

0 commit comments

Comments
 (0)