Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Problem with unstable_renderSubtreeIntoContainer and refs #9808
Do you want to request a feature or report a bug?
What is the current behavior?
The problem is
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template: https://jsfiddle.net/84v837e9/).
It causes because of, according to logs
What is the expected behavior?
I know about pattern with using
There may be a way with avoiding rerender and saving the refs from the first render?
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
referenced this issue
Jun 2, 2017
It's a bit hard for me to figure out what's going on there, but in any case we're going to eventually drop
You can see a working example using
I'll close because it's unlikely we'll change
I'm not sure it's a regression either, it could be an edge case making it work with 15.4.x but not with the pre-release version. Still, we have noticed a breaking-change on the Material-UI project. We have that open issue for more reference mui-org/material-ui#7025. Will dig more into it.
I have managed to reproduce what we experience with a simple jsfiddle demo. mui-org/material-ui#7025 (comment) The behaviour definitely changed between latest (v15.6.1) and next (16.0.0-alpha.13). However, that's most likely not important as affecting a unstable API that is going to have a first class one on the fiber version. @gaearon Thanks for the support.