How to call for server-side-data in the `root.tsx` of solid-start`
Since I want to wrap my entire site in
<ClientOnly> in the root.tsx, I can't use useRouteData as that is only supposed to be used under the /routes path.
So basically
?1 Reply
I guess what I'm asking is, whether it's possible to call
createServerData$ outside of the export function routeData() method, since root.tsx doesn't seem to work with export function routeData()
tried createResource, unfortunately it looks like the await that is inside fetchServerData doesn't finish before the site is rendered.
In the fetchServerData method:
the id: 1219 line prints, but it never gets to the console.log("[fetchServerData] data: ", data) line
The solution here was: