router.navigate() while <RouterProvider> is not rendered
Hi, in a legacy app the
<RouterProvider> will not be rendered immediately. There is a router.navigate(), which does change the URL and render the <RouterProvider>, but after render the root route will be shown.
Please take a look at this demo: https://codesandbox.io/p/sandbox/eloquent-dust-ff62fc
show and navigate triggers the router.navigate() and the render of the <RouterProvider>. The URL is correct but the content is wrong.
reload (with the correct URL) and show renders then the correct content.
I'm not sure if this behaviour is intenional and a conditional rendered <RouterProvider> should be avoided or if it is a bug?0 Replies