Refreshing

data class Refreshing<T>(val data: T? = null) : CgsStreamState<T>

A request is in flight.

Parameters

data

the value being refreshed, when the state carries one — CgsStreamState.toRefreshing keeps it. The get(id, scope) flows always emit null here, so keep what is already on screen rather than clearing it.

Constructors

Link copied to clipboard
constructor(data: T? = null)

Properties

Link copied to clipboard
val data: T? = null

Functions

Link copied to clipboard

This state as a Refreshing one, keeping whatever data it holds.