T
TanStack3y ago
constant-blue

Releative routes with params. All params mandantory?

I have the following route: /customers/$customersId/participants/$participantsId My definition for the Participant is as follows:
export const participantRoutes =
routeParticipants.addChildren([
routeParticipantOverview.addChildren(
[
routeParticipantsIndex.addChildren([routeNewParticipantDialog]),
routeParticipantEditor])
])
export const participantRoutes =
routeParticipants.addChildren([
routeParticipantOverview.addChildren(
[
routeParticipantsIndex.addChildren([routeNewParticipantDialog]),
routeParticipantEditor])
])
Now, when I create a relative link from "routeParticipantsIndex" to "routeNewParticipantDialog," I'm required to always specify the CustomerId as a parameter; otherwise, the CustomerId is undefined. Is there a way to change this, or is it necessary to always set all the parameters for the routes?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?