-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Uncaught Invariant Violation: addComponentAsRefTo(...) ref error #491
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
Comments
Your code looks fairly reasonable to me. That sort of error seems unlikely to have anything to do with React-Redux and |
But have you checked if you have multiple |
Yes, I have done that too, but it didn't work. I suspect that the two
underlying implementations of bootstrap components in react are using those
refs.... In any case, I guess I will just render plain bootstrap for now.
|
File an issue in that project and attach a project reproducing it. This warning almost always means duplicate React but it's impossible to help if you don't show your configuration. |
Hi, is there any way at all to dispatch to the state from a component of a component? If not, what other options do i have? I tried using bindActionCreators as well, but same error. I tried Dan's solution from here, no luck.
I am getting this error whenever I dispatch to the state:
Uncaught Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's
render
method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).I have already deleted and reinstalled node_modules, and tried the bootstrap-react library & the reactstrap library, but all give this error.
The text was updated successfully, but these errors were encountered: