Skip to content

Conversation

JeremyLoh
Copy link
Owner

Set isLoading state to false using setTimeout of 3000ms (3 seconds)

This happens after data fetch of a random radio station. So after clicking the get random station button, the user needs to wait at least 3 seconds before the button is enabled again. (The button remains disabled as long as isLoading state is set to true)

@JeremyLoh JeremyLoh added the enhancement New feature or request label Nov 27, 2024
@JeremyLoh JeremyLoh self-assigned this Nov 27, 2024
Copy link

vercel bot commented Nov 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
xtal ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 27, 2024 6:41am

@JeremyLoh JeremyLoh linked an issue Nov 27, 2024 that may be closed by this pull request
@JeremyLoh JeremyLoh merged commit e4ad6b9 into main Nov 27, 2024
3 checks passed
@JeremyLoh JeremyLoh added the performance Improvements to app performance label Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request performance Improvements to app performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add delay after clicking generate random radio station button

1 participant