Skip to content

createConnector()

Compare
Choose a tag to compare
@acdlite acdlite released this 07 Jul 19:47
· 30 commits to master since this release

This release includes a new function createConnector(), which allows you to create Connector-like React components by transforming sequences of props and the store state (and a sequence of dispatchs, for correctness).

(props$, state$, dispatch$) => childProps$

createConnector() is actually a thin layer on top of react-rx-component, which is a generalized form of the same concept.

Also new is a special version of bindActionCreators() that accepts either a dispatch function or a sequence of dispatch functions, useful for inside createConnector().

import { createConnector } from 'redux-rx/react';
import { bindActionCreators } from 'redux-rx;