Posts Tagged 'errors'

2023-04-28 12:00 UTC

React Repeating State Update

Posted 2023-04-28 12:00 UTC in react javascript errors

To save others from the debugging journey I've just been on, a brief note: If you're using React's useState hook, calling the state setter with a callback, and getting the weird behavior that your callback is being called repeatedly before eventually…