grobitto
How to detect if I got to the Route with back button or navigate(-1)
after a few hours of digging I found that useBeforeLeave relies on history.state _depth property to trigger correctly for history traversal. Unfortunately I was not expecting someone else to mess with history and erased it with my data. If I keep this property everything work as expected.
5 replies