この部分をreduxの新しいバージョンで使用するにはどうすればよいですか? これはreudxと一緒に働いています< 1.0バージョンhttps://github.com/reactjs/redux/releases/tag/v1.0.0-rc しかしConnector
react-redux
からundefined
この作業を行うことは可能ですか?React Redux <Connector>
私はパッケージが-Reduxのを反応させるために変更されたと思うのコード
import { Connector } from 'redux/react;
<Connector select={state => ({
center: state.map.get('mapInfo').get('center'),
zoom: state.map.get('mapInfo').get('zoom'),
markers: state.map.get('dataFiltered'),
visibleRowFirst: state.map.get('tableRowsInfo').get('visibleRowFirst'),
visibleRowLast: state.map.get('tableRowsInfo').get('visibleRowLast'),
maxVisibleRows: state.map.get('tableRowsInfo').get('maxVisibleRows'),
hoveredRowIndex: state.map.get('tableRowsInfo').get('hoveredRowIndex'),
openBallonIndex: state.map.get('openBalloonIndex')
})}>
{({dispatch, ...mapProps}) => (
<Map {...mapProps}
{...bindActionCreators(mapActions, dispatch)}
/>
)}
</Connector>
なぜ、このような古いバージョンをお試しください! 'Connector'ではなく' Provider'を意味しましたか?また、IIRCは 'connect(mapStateToProps、mapDispatchToProps)'でなければなりません。 – Li357
@AndrewLi、いいえ、私は 'Connector' - >ここには例が https://github.com/istarkov/google-map-react-examples/blob/master/web/flux/components/examples/x_main/main_map_pageです。 jsx –
今後のサポートのためRedux、React Redux、Reactのアップグレードをお勧めします。 React Redux
Li357