FluidAsyncEffectFunction Interface

Packages > @fluidframework/react > FluidAsyncEffectFunction

Definition for an async effect function used in reducers

Signature:

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

Properties

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

Events

asyncFunction

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

Signature:

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