(
store: RematchStore
): ReactBindingsCreates an object with all HOCs pre-bound to store's types.
(
mapStateToProps: (state: TRootState) => {},
mapDispatchToProps: (dispatch: TDispatch) => {}
): HigherOrderComponentFactoryJust re-exports connect with a descriptive name.
(
...models: [Model | string]
): HigherOrderComponentFactoryConnects the passed models as full slices with state and dispatch.
(
mapModelsToSelection: (models: TSelect) => { [key: string]: Selector },
mapDispatchToProps: (
dispatch: TDispatch
) => { [key: string]: RematchAsyncDispatcher }
): HigherOrderComponentFactoryUses the store's select function to build mapStateToProps before calling connect.
(
dispatchEffect: (
dispatch: TDispatch,
props: TProps
) => Promise | { [key: string]: Promise },
shouldDispatchOrKeys:
| Array<string>
| ((props: TProps, nextProps: TProps) => boolean) = []
): HigherOrderComponentFactoryCalls dispatchEffect when the wrapped component is first mounted. Effects can be repeated by passing an array of prop keys to watch or a predicate to call when props changes.