Logo Awesome React

Awesome React

Use Promise.race to avoid the "flash of loading state"

  • Details
With React Suspense we can probably use Placeholders and the delayMs prop, but here's a useful trick I came up with to avoid the flash of loading state with Promise.race