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

Warning: Function components cannot be given refs. Attempts to access this ref will fail. #233

Closed
codejoncode opened this issue May 22, 2019 · 3 comments
Labels

Comments

@codejoncode
Copy link

I'm getting a warning in my console output since upgrading my application to react v16 and react-redux-toastr to v7.5.1.

This occurs when I use toastr.confirm -- it looks like it is the toastr confirmation buttons that are causing the issue.

Warning: Function components cannot be given refs. Attempts to access this ref will fail.

Check the render method of ToastrConfirm.
in ReduxConfirmButton (created by ToastrConfirm)
in div (created by ToastrConfirm)
in div (created by ToastrConfirm)
in div (created by ToastrConfirm)
in ToastrConfirm (created by ReduxToastr)
in span (created by ReduxToastr)
in ReduxToastr (created by Connect(ReduxToastr))
in Connect(ReduxToastr) (created by App)
in div (created by App)
in Provider (created by App)
in App (created by Connect(App))
in Connect(App)
in AppContainer

@codejoncode
Copy link
Author

Seems to be still on going.

@diegoddox
Copy link
Owner

@codejoncode thanks, will take a look when possible

@diegoddox diegoddox added the bug label May 24, 2019
@diegoddox
Copy link
Owner

because of inactivity, I will close it but feel free to re-open if you're still facing this issue

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

No branches or pull requests

2 participants