This usually occurs for me in both React and in NextJs as well and according to my observation this routing change usually takes longer in dev environment try building the react app and running the build it shouldn't take much time compared to before