The current doubts have been resolved. The official statement is that this is the expected behavior with a loader. Since the loader may take a long time to run, the useNavigate hook is re-rendered, which is why an additional log appears in the console. The re-rendering of the useNavigate hook ensures that navigations are performed against the correct location.