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
Hi! I want to use the same component in 3 different routes but I can't make the .d.ts file to update accordingly. (kind of related to #129 but I did not find an example for it)
If a create an alias it works, but in typed-router.d.ts only appears the "add" route (the alias are the edit and view) so I don't have a way to programatically call them thorugh the IDE autocomplete, it only gives me the "add" route.
How would I need to use extendRoutes so that I have the 3 routes as separate routes?
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
-
Hi! I want to use the same component in 3 different routes but I can't make the .d.ts file to update accordingly. (kind of related to #129 but I did not find an example for it)
If a create an alias it works, but in typed-router.d.ts only appears the "add" route (the alias are the edit and view) so I don't have a way to programatically call them thorugh the IDE autocomplete, it only gives me the "add" route.
How would I need to use extendRoutes so that I have the 3 routes as separate routes?
This is what I'm doing:
This is what I'm trying to do:
Beta Was this translation helpful? Give feedback.
All reactions