connectIModelConnection FunctionConst

Beta  

Function that will connect a component to the IModelConnection data in the Redux store.

connectIModelConnection(mapStateToProps?: any, mapDispatchToProps?: any): (component: C extends ComponentType<Matching<TInjectedProps, GetProps<C>>>) => ConnectedComponent<C extends ComponentType<Matching<TInjectedProps, GetProps<C>>>, Omit<GetProps<C extends ComponentType<Matching<TInjectedProps, GetProps<C>>>>, > & TNeedsProps>

Parameter Type Description
mapStateToProps any optional user function that, if defined, will be executed to provide additional properties from store.
mapDispatchToProps any data passed to Redux connect function.

Returns - (component: C extends ComponentType<Matching<TInjectedProps, GetProps<C>>>) => ConnectedComponent<C extends ComponentType<Matching<TInjectedProps, GetProps<C>>>, Omit<GetProps<C extends ComponentType<Matching<TInjectedProps, GetProps<C>>>>, > & TNeedsProps>

Defined in

Last Updated: 13 June, 2024