ryelle / Foxhound

A text-focused blog theme for WordPress (in React)
https://themes.redradar.net/foxhound
350 stars 39 forks source link

Invariant Violation after navigating from an item with a featured image to a term archive #2

Closed ryelle closed 8 years ago

ryelle commented 8 years ago
Invariant Violation: findComponentRoot(..., .2.1.$post-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 ``.

When navigating to another page, error is a little more helpful:

Warning: setState(...): Can only update a mounted or mounting component. This usually
means you called setState() on an unmounted component. This is a no-op. Please check
the code for the Media component.

Possibly due to using PostsStore/the same fetchSingle action for both Media and it's parent SinglePost component.

ryelle commented 8 years ago

Fixed in e53f0526b01d0cfb5c4269b9dc9ff9396f8d720f