What Replaced createRouteData?
In older version of SolidStart you could get all routes in a folder. This was useful for doing things like getting all blog articles. It worked like this:
But createRouteData no longer exists in the latest version of SolidStart. How could I do the same thing with the newest version of SolidStart?
Thanks,
Chris
4 Replies
I think you'd use a server function instead (together with createAsync)
Thanks. I'll experiment with that.
GitHub
solid-start/docs/core-concepts/data-loading.mdx at 2f44d456e4814b99...
SolidStart, the Solid app framework. Contribute to solidjs/solid-start development by creating an account on GitHub.
Thanks, @peerreynders I tried that pattern, but createAsync didn't like what Vite returned.
I ended up with this pattern that works well. I still have to work on the one
any
I have in there 🙂