fulcro

Yaw Odame 2025-11-20T21:21:41.790729Z

I’m seeking some structural advice on how to achieve a list+detail view with dynamic router. When routing to /thing, I want the list pane to be rendered, and the detail pane to be empty. Conversely, when routing to /thing/:id, I want only the detail pane to be rendered, containing the entity details, without affecting the list component. Could you please suggest the preferred way to structure defrouters to accomplish this flow?

Yaw Odame 2025-11-24T19:14:39.087799Z

This approach sounds reasonable.

2025-11-21T13:50:22.100829Z

I think you could do this with a nested router. like the list+details container is at :route-segment ["thing"] and it renders the two panes, where the list pane contains ListView and the detail pane contains a nested router. that nested router would only have one target, DetailView with :route-segment [:thing-id]. when there's no /:thing-id in the URL, the router will fall back to rendering its own body, where you can put a placeholder. untested! I'm just making this up but I think it's sound.

1