question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

withRef is removed

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

11reactions
markeriksoncommented, Jun 21, 2019

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!

0reactions
markeriksoncommented, Jan 12, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found