Loading
Represents a loading state with optional cached data.
This state indicates that an operation is in progress. The optional data parameter allows you to show cached/stale data while fetching fresh data from the network.
Parameters
T
The type of data.
data
Optional cached data to display during loading (null for initial load).