OptimisticObject
Data class representing an optimistic state with methods to apply optimistic updates.
This class is designed to be used with destructuring declarations for clean access to its properties:
val (optimisticState, addOptimistic) = rememberOptimistic(initialState)
Content copied to clipboard
Parameters
T
The type of the state.
D
The type of the optimistic value.