Replies: 1 comment
-
When they ctrl click the link, cache some |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
(Note: this setup is for
react-location
, but I'm switching to new router and have the same doubt)Use case: a product list on the
/products
route.If the user clicks on a product, the route changes to
/products/my-product
, and the product information is displayed in a modal window over the listing. For this, I usematchRoute
andOutlet
like in the following code:But suppose the user does control + click on the product to open it in a new tab. In that case, I want the product information to be displayed as the main content (the user has not arrived there from the list).
I've spent a long time thinking about the best way to resolve this, but I can't find an idea that convinces me.
Beta Was this translation helpful? Give feedback.
All reactions