You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One parent route defining a listId param, which is extracted using const { listId } = useParams({ from: listEditGeneral.id }) in the child route component.
Initially I thought that the parseParams & stringifyParams defined in the parent route would also apply when reading the params in the child component, but it doesn't do so. Instead I have to re-define/copy both parseParams & stringifyParams in all child routes to get the correct data types for the params.
It would be a nice improvement if the router would walk down the route tree of the current route, applying all parseParams & stringifyParams it found on its way.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have a route tree looking something like this:
One parent route defining a
listId
param, which is extracted usingconst { listId } = useParams({ from: listEditGeneral.id })
in the child route component.Initially I thought that the
parseParams
&stringifyParams
defined in the parent route would also apply when reading the params in the child component, but it doesn't do so. Instead I have to re-define/copy bothparseParams
&stringifyParams
in all child routes to get the correct data types for the params.It would be a nice improvement if the router would walk down the route tree of the current route, applying all
parseParams
&stringifyParams
it found on its way.Beta Was this translation helpful? Give feedback.
All reactions