Sometimes when change te state of some components this error happends.
Uncaught TypeError: Cannot read property 'type' of null
at eval (index.js?2751:150)
at forEachSingleChild (ReactChildren.js?2d30:49)
at traverseAllChildrenImpl (traverseAllChildren.js?32bc:75)
at traverseAllChildrenImpl (traverseAllChildren.js?32bc:91)
at traverseAllChildren (traverseAllChildren.js?32bc:170)
at Object.forEachChildren [as forEach] (ReactChildren.js?2d30:69)
at Layout.findHeader (index.js?2751:149)
at eval (index.js?2751:156)
at forEachSingleChild (ReactChildren.js?2d30:49)
at traverseAllChildrenImpl (traverseAllChildren.js?32bc:75)
Sometimes when change te state of some components this error happends.
The error line:
if (x.type && (x.type.displayName == "Header" || x.type.displayName == "Component(Header)")) {