Reproduction
https://codesandbox.io/s/preact-input-uncontrolled-forked-3pvw7
Steps to reproduce
If we add/remove the last element of useMemo dependencies (same element) useMemo triggers only on first render and after first change
Expected Behavior
useMemo triggers whenever deps array length changes
Actual Behavior
useMemo not triggered when deps array length changes
Reproduction
https://codesandbox.io/s/preact-input-uncontrolled-forked-3pvw7
Steps to reproduce
If we add/remove the last element of useMemo dependencies (same element) useMemo triggers only on first render and after first change
Expected Behavior
useMemo triggers whenever deps array length changes
Actual Behavior
useMemo not triggered when deps array length changes