The setter function that is returned is not memoized, because it is always changed into a new function at each render (every invoke of the hook).