FluidStateUpdateFunction Interface

Packages > @fluidframework/react > FluidStateUpdateFunction

Definition for a state update function used in reducers

Signature:

export interface FluidStateUpdateFunction<SV extends IViewState, SF extends IFluidState, C extends IFluidDataProps> 

Properties

List of properties of this interface
Property Type Description
function (oldState?: ICombinedState, ...args: any) => IStateUpdateResult The function defined here will take the combined state and update either the Fluid state, the view state, or both. The new combined state and any new Fluid object handles to load in are returned by the function.

Events

function

The function defined here will take the combined state and update either the Fluid state, the view state, or both. The new combined state and any new Fluid object handles to load in are returned by the function.

Signature:

function: (oldState?: ICombinedState<SV, SF, C>, ...args: any) => IStateUpdateResult<SV, SF, C>;