arrow_backBACK TO DRILLS
Black Beltcustom-hooks
useInterval With A New Callback Each Render
A useInterval(onTick, delay) Hook includes onTick in its dependency array. The parent passes a new inline callback every render. What subtle runtime issue can happen?