Link component outside main router context #1578
Unanswered
benjavicente
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! It is possible to use the link component in some way, outside the
<RouterProvider />
that matches the routes?I tried
and got
Invariant failed: Could not find the nearest match!
when theModalLinkFromOutside
is rendered.Why I am doing this? I want to build a static site in Astro with FULL client side navigation in a modal (don't ask the server needed HTML/JS on navigation in it). The router layer is only added to the modal, and links outside the modal should open it.
Beta Was this translation helpful? Give feedback.
All reactions