IViewState Interface

Packages > @fluidframework/react > IViewState

Base interface to extend from for the view state. This should be crafted based off of what the view will use from the Fluid state.

Signature:

export interface IViewState extends IFluidState 

Extends: IFluidState

Properties

List of properties of this interface
Property Type Description
fluidObjectMap FluidObjectMap The map containing the locally available Fluid objects that have been loaded. If there are any Fluid objects loaded during initialization that the view needs to use, they should be fetched and loaded in here. Any new Fluid objects added through reducers/selectors during the React lifecycle will be automatically added to this map and the state will re-update when they become asynchronously available

Events

fluidObjectMap

The map containing the locally available Fluid objects that have been loaded. If there are any Fluid objects loaded during initialization that the view needs to use, they should be fetched and loaded in here. Any new Fluid objects added through reducers/selectors during the React lifecycle will be automatically added to this map and the state will re-update when they become asynchronously available

Signature:

fluidObjectMap?: FluidObjectMap;