Currently I have a <TabbedShowLayout>
presenting resource data and related data. I want a view to make relations with resource. I was trying to have a tab that changed its contents based on route and for that used Switch
and Route
but no success with that. The base route was supposed to be something like resource/id/show/related-model-tab/
and for adding relation something like addremove
was added to the previous route.
I want to have a component to render on the 1st route, and another in the 2nd. Since RA doesn't support a feature like this yet, should I use Switch
and Route
components from React Router, or should I use the customRoutes in order to show relation add/remove components outside the tabbed layout?