Course lesson
Modify Suspense Config to Avoid a Flash of Loading State
This video uses an experimental API that has been changed. useTransition no longer accepts a SUSPENSECONFIG. Learn more.
- Duration
- 3 min
- Access
- Pro
- Transcript
- Available
This video uses an experimental API that has been changed. useTransition no longer accepts a SUSPENSE_CONFIG. Learn more.
By improving the loading experience for users with fast connections, we actually made the experience worse for people with slower connections using two additional configuration options busyDelayMs and busyMinDurationMs allowing us to communicate with React: "If the busy time takes at least x milliseconds, then show the busy state for at least y milliseconds."