Hey I have a issue i cant wrap my head around..
I have a action in redux called updateIpBrowserConfig.
I pass it to my container and then to a child component.
When I do this in my child component:
constructor(props) {
super(props);
console.log(this.props);
}
I sure enough get all the props and I can see that the updateIpBrowserConfig is a function:
{options: Array(3), ipBrowserConfigSelected: 1, updateBrowserIpConfig: ƒ}
But if I do also in the constuctor
constructor(props) {
super(props);
console.log(this.props);
console.log(this.props.updateBrowserIpConfig);
}
I get exactly the same props object that shows updateBrowserConfig as a function, but the value when printing the function is "undefined".
So I cant fire the action, because the function is undefined. But it is in my props as a function?
I cant wrap my head around this. Hopefully someone can help