If you omit the dependencies array in useMemo, the function will always be memoized, meaning it won't be recomputed on subsequent renders unless the component is re-rendered.