Paratron / hookrouter

The flexible, and fast router for react that is entirely based on hooks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Access route param inside deeply nested component

norbiu opened this issue · comments

I have a route for the product page called '/product/:productHash'. I also have a component on that page that is nested a few levels inside the main. Is there a hook that could access that param inside the nested component without passing it all the way down? I tried usePath, but that gives me the whole path.