Replies: 1 comment
-
Hi, I have the same problem, so maybe You somehow solved it? Viewing posts on Instagram is implemented in the same way, but don't know how... Maybe it's not even a React. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
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, or reloads a product page. 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