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
The problem is for dynamic route, such as /space/[space_id], to correctly construct the url with correct space id to be displayed in browser, as needs to be built with the actual space_id.
As far as I know, there is no way to extract the original as from the router object. The sub component needs to be aware of the dynamic route setup, the space id to correct build the routing parameters.
Does anyone know if there is a generic solution for this with out requiring components to be aware of dynamic routing config?
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a use case where a component needs to use
router
to update current page's query parameters by using:The problem is for dynamic route, such as
/space/[space_id]
, to correctly construct theurl
with correctspace id
to be displayed in browser,as
needs to be built with the actualspace_id
.As far as I know, there is no way to extract the original
as
from the router object. The sub component needs to be aware of the dynamic route setup, the space id to correct build the routing parameters.Does anyone know if there is a generic solution for this with out requiring components to be aware of dynamic routing config?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions