Hi,
I'm updating from react-redux 4 to react-redux 7. Updated to 5 and sorted that out no problem. After updating to 6.0.1, I'm getting an error withRef is removed. To access the wrapped instance, use a ref on the connected component
I don't use withRef anywhere in my project.
I use a Connected Router from react-router-redux like this: <ConnectedRouter history={history}>
Is there a workaround for this?
So I switched to connected-react-router and updated that to the latest version as well as react-redux-dom, and I still get the error.
The issue tracker here on GitHub is reserved for bug reports and feature requests. For usage questions (which is what I believe this is), please use Stack Overflow or Reactiflux where there are a lot more people ready to help you out. Thanks!
@ThinkSalat Do you manage to solve it?
@markerikson I think the issue is legitimate, I get the same error. It's not a usage question, unless I'm missing something.
Per the API docs for both v6 and v7, we no longer support a withRef option. That's why you're seeing the error. Find the code in either your app or a dependency that is still attempting to use that option, and fix it:
Why is this closed? Was there a solution?
I still have the same exact issue.
It was closed because the question was answered. Make sure that all code in your app and dependencies have been updated to avoid using the withRef option, because it no longer exists as of v6.