FluidSelectorFunction Interface

Packages > @fluidframework/react > FluidSelectorFunction

Definition for a selector function used in selectors

Signature:

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

Properties

List of properties of this interface
Property Type Description
function (state?: ICombinedState) => { result: any | undefined; newFluidHandles?: IFluidHandle[]; } The function defined here will take the combined state and return to the view any values that it needs from other values/Fluid objects that were passed in to the data props on initializing. It will also return any new Fluid handles that will be needed for other users to render the view value

Events

function

The function defined here will take the combined state and return to the view any values that it needs from other values/Fluid objects that were passed in to the data props on initializing. It will also return any new Fluid handles that will be needed for other users to render the view value

Signature:

function: (state?: ICombinedState<SV, SF, C>) => {
        result: any | undefined;
        newFluidHandles?: IFluidHandle[];
    };