withRef is removed
See original GitHub issueHi,
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?
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
react-redux-v6: withRef is removed. To access the wrapped ...
I want to call a function from a connected component using ref , so I used before from withRef ...
Read more >Error withRef is removed. To access the wrapped instance ...
[Solved]-Error withRef is removed. To access the wrapped instance, use a ref on the connected component when using Redux Form-Reactjs · score:27. Accepted...
Read more >How to Use Refs on Connected Components | by Mehran Khan
{withRef: true} is removed in react redux 6 and {forwardRef : true} is added ... The withRef option to connect has been replaced...
Read more >Upgrade Guide (v2 -> v3) | Format.JS
Upgrade Guide (v2 -> v3). Breaking API Changes. addLocaleData has been removed. See Migrate to using native Intl APIs for more details.
Read more >Field - Redux Form
For this to work, you must provide a withRef prop, and your component must ... Saves the field value in the event for...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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!
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.