Spooky Dooky
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!1 replies
Issue deploying Solid Start server functions on Vercel
Hi all,
i'm having trouble getting functions with "use server" to run correctly on Vercel.
The App iteslf runs just fine - using SPA routing etc all works. Locally, the server functions also work, but once dploying to vercel I get 405 Method not allowed.
I have set up the preset
and also added the rewrite
I see no other mentions of Vercel in the docs, what could be wrong?
Thanks!
1 replies