Skip to content

Commit

Permalink
align timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Nov 21, 2024
1 parent 5eb1e1b commit 6cbbb7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion next-enterprise/src/app/SanityLive.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function SanityLive() {
if (signal.aborted) return
router.refresh()
console.log('<SanityLive> refreshing')
}, 3_000)
}, 2_000)
} else if (event.type === 'restart') {
router.refresh()
}
Expand Down
2 changes: 1 addition & 1 deletion tanstack-start/app/components/ThemeButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const randomColorTheme = createServerFn().handler(async () => {
})

// Wait 5 seconds to stagger requests a little bit
await new Promise((resolve) => setTimeout(resolve, 5_000))
await new Promise((resolve) => setTimeout(resolve, 2_000))

return res.json()
})
Expand Down

0 comments on commit 6cbbb7a

Please sign in to comment.