Closed aap82 closed 6 years ago
I have this issue too. The node element that is passed into the event object is text but there is no function. This should be addressed considering React can properly handle components that can simply return text.
To recreate it, simply use a component like
const FunctionalTextComponent = () => 'My functional text component'
Did not have this issue in 4.2.0
Does this still happen with mobx-react-devtools@6.0.1?
Fixed and released as 6.0.2
cc @aap82 @jamespedid
With displayUpdates enabled, and using a component like:
ObjPropDisplayer = observer ({ obj, prop }) => obj?[prop] or null
throws the above mentioned error because, well, it's not a DOM node, but still is a valid React (observer) component.