
The
LoadingState API is experimental and may change in the future. It has been marked as @deprecated to remind the developer that it is experimental. It is not "deprecated", just experimental. Please don't use it in production versions of your app. We do not guarantee backward compatibility, or that the API will remain stable.LoadingState can be very useful as a fallback for React.Suspense.
Dialogs are already suspenseful!If any React code in your dialog suspends, a loading state will be shown automatically.This component is only for when you need to control the message shown during loading.
Props
An optional message to display next to the spinner. e.g.
"Loading contacts...".Defaults to "Loading...".