goatslacker / goatslacker/alt

AltContainer stores/actions not working with required propTypes

Open
#446 7 comments 2 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
3.4k
Forks
312
PR merge metrics
No merged PRs in 30d

Description

Hi,

Parent actions

``` js
someFunc() {
this.dispatch();
}

someFunc2() {
this.dispatch();
}

someFunc3() {
this.dispatch();
}
```

Parent component

``` js

```

Child component

``` js
{...}
Child.propTypes = {
someFunc: React.PropTypes.func.isRequired,
someFunc2: React.PropTypes.func.isRequired,
someFunc3: React.PropTypes.func.isRequired,
someArray: React.PropTypes.array.isRequired
};
```

Error: Failed propType: Required prop `someFunc` was not specified in `Child`. Check the render method of `Parent`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.