-
Notifications
You must be signed in to change notification settings - Fork 46
occasional Uncaught Invariant Violation error (possibly on page transition?) #17
Comments
Also, if you load it after, say, the export default createDevTools(
<DockMonitor
toggleVisibilityKey='ctrl-h'
changePositionKey='ctrl-q'
changeMonitorKey='ctrl-m'
defaultSize={0.22} >
<LogMonitor />
<Inspector />
</DockMonitor>
) |
@billyjanitsch @beeftornado |
@alexkuz it doesn't look like 0.3.3 has been published to npm yet |
@billyjanitsch oops, sorry, fixed that. |
I still get this error using 0.3.3, unfortunately. |
Sigh... |
Just also confirming the issue still present in 0.3.3 |
I am running version 0.3.4 and I am having the same problem |
Thank you, I'm aware of it and was able to reproduce it, just hadn't much time to look into. |
@benjie good catch, thank you! Indeed, |
Ok, I published a fix in |
For the reference - seems like it's related to React batching (see facebook/react#6538 (comment)) - I observed same symptoms, like special behavior of |
Can you please see if facebook/react#6650 fixes this for you? |
@gaearon actually, I forgot to test |
I've noticed when experimenting with this monitor, I get errors like the following:
Uncaught Invariant Violation: findComponentRoot(..., .0.1.1.1.$/=10.1.1.0.$router.0): Unable to find element. This probably means the DOM was unexpectedly mutated (e.g., by the browser), usually due to forgetting a <tbody> when using tables, nesting tags like <form>, <p>, or <a>, or using non-SVG elements in an <svg> parent. Try inspecting the child nodes of the element with React ID``.
The monitor's behavior doesn't appear to be affected. The DOM node corresponds to an item in the monitor's diff tree (in the above example,
state.router
, though I've also seen it for other top-level parts of the state, so it may not be related to react-router. It does appear to happen often on page transitions.I'm sorry that I don't have a more reproducible example at the moment. I'll try to dig in and find a more specific cause when I have time. Perhaps you have some idea of what might be causing this?
The text was updated successfully, but these errors were encountered: