gmnss1917
gmnss1917
SSolidJS
Created by gmnss1917 on 9/14/2023 in #support
how to handle responses from the server on the client?
I'm trying to implement server side auth with a cookie, the cookie part it's working, but the thing is I want to save my user info - that is returned by the login function (name, avatar, etc) - in a context in order to use it across the app. How do I go about handling the response on the client in order to properly set it in the context ?
3 replies
SSolidJS
Created by gmnss1917 on 8/31/2023 in #support
how to define event.locals type?
quick question, I'm trying to write some middleware to integrate pocketbase with SSR and I was wondering if anyone knows where (like in Svelte) can I define the type for my event.locals attribute?
3 replies
SSolidJS
Created by gmnss1917 on 8/30/2023 in #support
<name>.server.ts file naming convetion ?
hello, I'm still kind of new to solid start, I was looking at the docs - into the session bit - and I noticed that it's using a filename convention of <name>.server.ts. Does this mean that whatever is written inside this file will only be run on the server or is it just convention to distinguish easily that which should be run on the server and that which should be run on the client ?
1 replies
SSolidJS
Created by gmnss1917 on 8/29/2023 in #support
PocketBase Auth with Context doesn't track store
No description
6 replies
SSolidJS
Created by gmnss1917 on 7/13/2023 in #support
How to pass key into createRouteData function inside useRouteData ?
9 replies
SSolidJS
Created by gmnss1917 on 6/17/2023 in #support
routeData arguments
How do I pass arguments from component props into a routeData function (for data-fetching with a key for example) ?
3 replies