I'm passing an action down form Context. The onClick
has to go a few levels but for some reason when you click it the first time it fires twice. Only the first time, though, after that it fires once per normal. It also only seems to do this if the console.log
is inside the Reducer function...
Demo can be found here:
https://codesandbox.io/s/nameless-haze-veejt