FluidObjectSelectorFunction Interface

Packages > @fluidframework/react > FluidObjectSelectorFunction

Definition for a Fluid object selector function used in selectors

Signature:

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

Properties

List of properties of this interface
Property Type Description
function (handle: IFluidHandle, state?: ICombinedState) => { result: IFluidObject | undefined; newFluidHandles?: IFluidHandle[]; } Similar to the FluidSelectorFunction's function but this also takes in a handle if we need to fetch a Fluid object from the fluidObjectMap

Events

function

Similar to the FluidSelectorFunction’s function but this also takes in a handle if we need to fetch a Fluid object from the fluidObjectMap

Signature:

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