Closed joepio closed 2 years ago
I think it was this line in the routes:
<Route path='/' element={<ResourcePage subject={removeTrailingSlash(window.location.href)} />} />
This was called whenever AppRoutes
was rerendered. And that is not the right time!
I've noticed a bug in production a few times that I haven't been able to reproduce in development for some time. Sometimes when navigating to the root (the homepage) of a server, the wrong page shows up.
E.g. here we've visited Home, but we still see the
Document Edit
invite, which was visited a couple of clicks before: