DEV Community

Discussion on: Debouncing with React Hooks

Collapse
 
skyboyer profile image
Yevhen Kozlov

useCallback, useSelector, useMemo, useReducer are actually operating on most recent arguments each run.
It's only useState and useRef who purposely ignore any changes on sequential calls