FluidEffectFunction Interface

Packages > @fluidframework/react > FluidEffectFunction

Definition for an effect function used in reducers

Signature:

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

Properties

List of properties of this interface
Property Type Description
function (oldState?: ICombinedState, ...args: any) => void The function defined here will take the combined state and apply some logic that does not cause any state update changes

Events

function

The function defined here will take the combined state and apply some logic that does not cause any state update changes

Signature:

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