Skip to content

Commit

Permalink
Merge pull request #988 from developit/devtools-handle-unmount
Browse files Browse the repository at this point in the history
  • Loading branch information
developit committed Feb 23, 2018
2 parents 74a02a7 + 39273cf commit 7d16fee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions devtools/devtools.js
Expand Up @@ -330,6 +330,7 @@ function isRootComponent(component) {
* @param {(Component) => void} visitor
*/
function visitNonCompositeChildren(component, visitor) {
if (!component) return;
if (component._renderedComponent) {
if (!component._renderedComponent._component) {
visitor(component._renderedComponent);
Expand Down

0 comments on commit 7d16fee

Please sign in to comment.