TanStackT
TanStack2y ago
2 replies
broad-emerald

Code based routing help

Hi all, struggling to understand the routing concepts a little bit. partly bc it is 4am.

My aim is to have /games be the "create game" page, and /games/$slug be the "playing game" page. there are other routes like /games/$slug/results also.

Is it correct to have THIS rootRoute here? Or should the game's route parent be different? (and also the results page etc)
CleanShot_2024-05-21_at_03.59.162x.png
Was this page helpful?