MattS
MattS
SSolidJS
Created by MattS on 7/17/2023 in #support
Can the server$ call get access to the Request object?
I'm confused on why
createServerAction$(async (form: FormData, { request })
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.
10 replies