Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Required context was not specified #17

Open
blaesus opened this issue Jun 14, 2016 · 0 comments
Open

Required context was not specified #17

blaesus opened this issue Jun 14, 2016 · 0 comments

Comments

@blaesus
Copy link

blaesus commented Jun 14, 2016

I keep getting this annoying error in title when I user ProgressHUD, detail as follows:

image

If I remove the isRequired in ProgressHUD source code (line 25), I will no longer get it.

  contextTypes: {
    showProgressHUD: React.PropTypes.func.isRequired,  // Remove isRequired here will solve it
    dismissProgressHUD: React.PropTypes.func
  },

The render function looks like this

render() {
  // Something else
        <ProgressHUD
          isVisible={this.props.hudVisible}
          isDismissible={false}
          overlayColor="rgba(0, 0, 0, 0.11)"
        />
}

What can I do here?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant