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

UploadHandler has incorrect propTypes for abort and upload #20

Open
matrangam opened this issue Mar 12, 2019 · 0 comments
Open

UploadHandler has incorrect propTypes for abort and upload #20

matrangam opened this issue Mar 12, 2019 · 0 comments

Comments

@matrangam
Copy link

matrangam commented Mar 12, 2019

When using the UploadHandler with renderProps, as described in the example, all usage of the component results in the following errors in the browser:

Warning: Failed prop type: The prop abort is marked as required in UploadHandler, but its value is undefined.

Warning: Failed prop type: The prop upload is marked as required in UploadHandler, but its value is undefined

          <UploadHandler file={selectedFile} autoStart={true}>
            {({ upload, abort }) => {...}
          </UploadHandler>

Looking to see if we can adjust the PropTypes to be less strict to allow for this type of usage.

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