I\'m trying to retrieve the state of reducer synchronously.
useEffect will get called after toggleChecked, toggleChecked, isEveryChildChecked are executed.
As soon