These are chat archives for airbnb/enzyme

18th
Aug 2016
Andrew Blowe
@tehandyb
Aug 18 2016 14:48
I have a component that uses document.getElementById in its componentWillUpdate. So to get the code to run I have to do a wrapper.setProps so the componentWillUpdate gets called. But it always returns null for finding the element in the document, do I need to do static rendering instead of mount?
Andrew Blowe
@tehandyb
Aug 18 2016 15:06
Actually maybe what I need is to use mount with the attach option? Like this https://github.com/airbnb/enzyme/blob/master/docs/api/ReactWrapper/detach.md