SolidJSS
SolidJSโ€ข3y agoโ€ข
9 replies
MattS

Can the server$ call get access to the Request object?

I'm confused on why
createServerAction$(async (form: FormData, { request })

has a request object but server$ does not.

I'm trying to grab the current user when I do a server$ call, but I don't have any way to know what user it is because userServerContext() is {} and I don't see any way to get that data. I'm piling through the SolidStart source code right now but I don't see anything.

I love Solid and Solid start but a few more examples in the documentation would really help.
Was this page helpful?