Closed joshaber closed 7 years ago
__reactInternalInstance$jhcl9oakqvvlttco8ywuerk9'
My current theory is this is related to https://github.com/desktop/desktop/issues/1507, where we'd throw an exception while the component was mounting. It wouldn't be too surprising if React was broken after that.
So I'm gonna close this 🙏 and we can re-open if it's still happening on 0.5.4.
Make sure to call wrapper.update()
before the method is throwing the error (like wrapper.simulate()
). I think that of error is thrown (enzyme) when the wrapper points to nodes that no longer exists (because the page was re-rendered or the original nodes replaced/changed for some reason ). update()
solved the problem in my case ( error thrown when calling wrapper.simulate()
- working with enzyme / jsdom)
@cancerberoSgx thanks for the suggestion - however we're not using Enzyme in the project so this likely isn't a factor. I haven't heard any recent incidents of this but we'll keep an eye on things just in case.
https://haystack.githubapp.com/desktop/needles/Zqxd13opJM0IgBulUnNCLQ