IFluidReducer Interface

Packages > @fluidframework/react > IFluidReducer

The Fluid reducer, containing an object that is keyed by function name and contains state update and effect functions. Each function will have the view state, fluid state, and data props passed into it as parameters in the combined state. State update functions are used to modify values on the state and return the updated state and any new Fluid object handles. Effect functions use values on the state to apply changes elsewhere. They do not return any new objects or state.


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