Closed jordwalke closed 11 years ago
We should document the limitation here, and possibly fix this in the react core. When the top level component type switches, we can't innerHTML the entire document, so we might need to special case it. Thanks to @andreypopp for finding this one.
Related to this, if you mess up and the server rendered checksum doesn't match you'll also have this issue.
I think this can be closed cause React now has a special code path for mutating <html> element.
<html>
Fixed in https://github.com/facebook/react/commit/c8886a0424c426818566c21d5a69c4cb8f5d41e3
We should document the limitation here, and possibly fix this in the react core. When the top level component type switches, we can't innerHTML the entire document, so we might need to special case it. Thanks to @andreypopp for finding this one.