#Nested routing with table and expandable rows?
1 messages · Page 1 of 1 (latest)
Some pseudo code for you
I'm pretty sure users.tsx (where the table is rendered) has to be a layout route for users/$id.tsx (where the detail expansion for a single user would be)
let {user} = props;
let {id} = useParams();
return <tr>
<td>{user.id}</td>
{/* if the user id for this row matches the id param, render the nested route */}
<td>{user.id === id ? <Outlet /> : null}</td>
</tr>