DEV Community

Discussion on: Custom React Hooks: useBoolean

Collapse
 
fidaay profile image
fidaay

That "desynchronization" occurs because of states mutations are asynchronous, and it shouldn't be treated as a problem nor unexpected behavior.