Can't get all route segment in layout
Unanswered
Pacific anchoveta posted this in #help-forum
Pacific anchovetaOP
In
https://codesandbox.io/p/sandbox/7jqtls
layout.tsx, how can I catch all nested route segment using params? Is this expected behavior? If yes, what's my option to get the variantId params in layout.tsx under [productId] folder? Code for my issue:https://codesandbox.io/p/sandbox/7jqtls
2 Replies
Pacific anchovetaOP
Try navigate to /products/1/2
Pacific anchovetaOP
Can someone help me?