Supports useMemo invocations where the function is not an inline function, such as `useMemo(someFunction, [])`.