This is the example code, and I just added console.log line before the switch.
If you click on any of the buttons on this example page, you will see the initial dispatch is run twice.
But it doesn't run twice again after the initial dispatch, and it logs just once. Is the initial twice call how it's supposed to be?
This is the example code, and I just added
console.log
line before theswitch
.If you click on any of the buttons on this example page, you will see the initial dispatch is run twice.
But it doesn't run twice again after the initial dispatch, and it logs just once. Is the initial twice call how it's supposed to be?