Enter the same address in the address bar in react-router, and those with different parameters will not jump immediately?

now there is a router for the User page

<Route path="/User/:actid" component={User} > 
</Route>

when you change the actid parameter after the address bar User, the first input will not jump, and you will jump back only if you press enter again.

for example, enter / User/59, first, then change 59 to 60, press enter, and there will be no jump at this time. Click enter again to jump

Mar.07,2021

default to the same component will use the original component

  1. watch
  2. Route Guard

use these two to listen for updated data
there seems to be another way to set key by routing

Menu