jrainearwills
Explore posts from servers`createResource` for Create and Update Requests?
I'm using createResource to fetch data displayed in a form. When a user modifies the form I want to update the resource using a PUT HTTP request. If I want to trigger Suspense, then should I wrap the PUT in another
createResource
call?3 replies
`createContext`, What's the point?
In SolidJS, It looks like I can create a store in a JS module, then import the state and setters to any component in my app. That said, is there an advantage to using a context or is it there for convenience?
This works like as far as I can tell:
5 replies
Custom Accordion - Not Consistant
I wrote a custom Accordion. If I render a single accordion, then I can click on it and it expands as expected ever time. However, if I render multiple Accordions in a for loop, then I can click on the Accordions in the list and sometimes they do nothing. After clicking on them a few times they finally expand.
3 replies
SolidStart - Server Only
I see a way to ensure functions only run on a server, but what about modules that declare classes? I guess that I need to use a factory function instead?
https://docs.solidjs.com/solid-start/reference/server/use-server
11 replies