Why dose createServerData$ return undefined
I am learning solid start, i am having some issues getting routeData and createServerData to work correctly, the below example prints
Test: undefined
where it should return Test: { Foo: "Bar" }
3 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I looked at it, but can't see how it applies. I tied making it part of the html but it just returns "here:"
<li>Here: {user?.Foo}</li>
My HeaderLayout is not a page, but a component. Can't a component use routdate?The user route data will be undefined initially
and since components aren't rerendered in Solid, you'll get undefined console logged at first
put the console log in a createEffect or in the jsx to see the output
OR