Gibt es eine gute Praxis für die Kombination mit connect
von react-redux
als Dekorateur mit redux-saga
?Wie @connect Decorator mit Redux-Saga arbeiten?
import React from 'react';
import { connect } from 'react-redux'
@connect(({ data }) => ({ data }), require('../models/effects').default)
export default class User extends React.Component {
onClick() {
console.log('on click.');
// how to make redux-saga work here?
this.props.action1();
}
}