In previous wouter-preact versions, calling useParams() in a nested route would only return the params for that specific route and not any potential parent.
Starting with v3.3, this is no longer the case, which allow us to simplify a bit some logic we had in DashboardApp where we had to call useParams() in order to pass a param down to OrganizationActivity.
Now we can call useParams() directly in OrganizationActivity, as we do in other dashboard activity components.
In previous wouter-preact versions, calling
useParams()
in a nested route would only return the params for that specific route and not any potential parent.Starting with v3.3, this is no longer the case, which allow us to simplify a bit some logic we had in
DashboardApp
where we had to calluseParams()
in order to pass a param down toOrganizationActivity
.Now we can call
useParams()
directly inOrganizationActivity
, as we do in other dashboard activity components.See the release notes for reference https://github.com/molefrog/wouter/releases/tag/v3.3.0