Refs: https://legacy.reactjs.org/docs/hooks-reference.html#usestate > React guarantees that setState function identity is stable and won't change on rerenders. This is why it's safe to omit from the useEffect or useCallback dependency list.
Refs: https://legacy.reactjs.org/docs/hooks-reference.html#usestate > React guarantees that setState function identity is stable and won't change on rerenders. This is why it's safe to omit from the useEffect or useCallback dependency list.