alrightsure
Explore posts from serversCalling database with server actions in Solid Start
I appreciate the responses! I think I was just worried there was something specifically with the actions that was considered a bad practice, but I am pretty sure I am in the camp that likes the idea of consolidated code in one spot. Will definitely try it out and see how I like it!
8 replies
Calling database with server actions in Solid Start
I guess I’m aware of the philosophy, I’m more confused on why it would mention it specifically for the actions, but then on the API page it seems to take a stance that it DB calls should be used in the same file:
“While we think that using createServerData$ is the best way to write server-side code for data needed by your UI, sometimes you need to expose API routes.”
8 replies