React - How can I prevent transitions in same URL?

Hello Campers,

I have solved the same issue whenever the url is changed setRouteLeaveHook route hook is invoked to solve the problem .

My question is about preventing transitions while the url isn’t changed (same single page )in order to deal with pending changes ?

1 Like