benkermode

Results comments of benkermode

@ljharb, managed to my connected, HOC'd component to test like so: ``` wrapper = shallow( ).dive({ context: { store } }).dive(); ``` But componentDidMount() is not triggered. Using **mount** does...

> Do you have `disableLifecycleMethods` set anywhere, like perhaps in your `configure` call? No. It seems I didn't dive deep enough. `` was wrapping ``, which was wrapped by my...

Using a Helmet server-rendered html page, loading a React app using Helmet, it seemed my CSS was being re-loaded, causing flashing. I got around it like this. In the server-page...

Hi @davidchase , I'm also trying to do this. Can you post your solution?

@ljharb @penx I find the language of the docs for componentDidMount() confusing. The method is invoked after the DOM is updated ("component...inserted into the tree") but you can setState immediately...

@ljharb you're saying setting a state variable in a component constructor, then modifying it componentDidMount, will be batched together and executed as a single DOM change? I thought componentDidMount executed...

@ljharb okay, then I understand it to mean that you can modify the DOM multiple times in one tick, and **then** the browser will paint the current (last) state.

For anyone interested there's some more discussion of it here: https://twitter.com/dan_abramov/status/981712092611989509?lang=en. Though I'd love to find more info on it.

What is the `data` object that is passed to shouldSendCallback? I want to target specific error messages and suppress them from being sent.

`--verbose=false` fixed the issue for me when testing **enzyme shallow**. The console.logs were, though, working without the fix for **enzyme mount**.