Recursive routes with Solid Router
I'm trying to build something akin to a file explorer using solid router, where each sub path is like a directory and the final slug is the file.
However, trying to model this naively with a recursive router component runs into a call stack max depth. Makes sense, I guess.
I attempted lazy loading, but only the rendered component is lazy loaded - not the route itself.
Is something like this possible? Right now I'm working with a
[...path]
route and just doing all the data loading, path extraction etc by hand.
Thanks for the Tipps. (P.S. I found that React Router has this <Match> component, where they show a nice example of a linked list as recursive rendering. But I found nothing like this in solid-router and all my attempts failed.)
Thanks!0 Replies