Closed Tarpsvo closed 4 years ago
I have the same issue. Haven't found a way around yet :(
So, the devs already seem to know about this issue: https://github.com/sghall/react-compound-slider/issues/106
Mercifully, the React team reverted this. Should be good on react@16.13.1 ... https://github.com/facebook/react/pull/18330
If there's any further issues open this up again.
Problem or feature description:
React 16.13 throws the error "Cannot update a component from inside the function body of a different component." when trying to
setState()
a value fromonUpdate
callback.Steps to reproduce (for problems):
Snippet of code:
This causes a massive spam of the following error:
Warning: Cannot update a component from inside the function body of a different component.
The error is also mentioned in the 16.13 changelog.
I pretty much have no idea how I should fix this. Any guidance would be appreciated, thanks!
Versions (for problems):
React-Compound-Slider: 2.5.0 React: 16.13