- eslint-config-airbnb:
17.1.0
- eslint:
5.6.0
I have a container with redux in my application. I am calling the in the connect assigned prop in componentDidMount where the eslint error react/destructing-assignment appears. But when I destruct the prop, then I have a name collision with startup. Is this the wanted behavior? Or is it preferred to name the prop differently when binding? I couldn't find anything in the style guide according to this.
This exact same code worked fine with another project with v15.1.0
import React, { PureComponent } from 'react';
import { View } from 'react-native';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { startup } from '../../redux/appStatus/appStatus.actions';
class App extends PureComponent {
componentDidMount() {
// this here is an error
this.props.startup();
}
render() {
return <View />;
}
}
const mapDispatchToProps = dispatch => bindActionCreators({
startup,
}, dispatch);
export default connect(undefined, mapDispatchToProps)(App);
17.1.05.6.0I have a container with redux in my application. I am calling the in the
connectassigned prop incomponentDidMountwhere the eslint errorreact/destructing-assignmentappears. But when I destruct the prop, then I have a name collision withstartup. Is this the wanted behavior? Or is it preferred to name the prop differently when binding? I couldn't find anything in the style guide according to this.This exact same code worked fine with another project with v
15.1.0