Skip to content

Commit

Permalink
Update ThemeButton.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Nov 21, 2024
1 parent 8414776 commit 206656c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tanstack-start/app/components/ThemeButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ const randomColorTheme = createServerFn().handler(async () => {
method: 'PUT',
})

// Wait 1 second to stagger requests a little bit
await new Promise((resolve) => setTimeout(resolve, 1_000))

return res.json()
})

Expand Down

0 comments on commit 206656c

Please sign in to comment.