Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 139833

Click function being called twice but only on the first click?

$
0
0

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


Viewing all articles
Browse latest Browse all 139833

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>