SolidJSS
SolidJS3y ago
10 replies
Max

SolidStart unknown number of optional nested route parameters

Hi, looking if there's a way to set up file based routes where there's an unknown number of optional nested routes.

So could be /:a?/:b?/:c?/.../:f?...

But seems might have to then be array of args cause we don't have names. So for now just going 3-4 levels explicitly like

[a]/
├─ [[b]]/
│  ├─ [[c]].tsx


which is anyway all I likely need so may be fine, but wondering if there was a way.

Thanks
Was this page helpful?