ctrl-z
Explore posts from serversHow do you trigger population of db on startup of app in SolidStart?
I currently take the local scripts approach to handle 1-off scripts like db-seeding. Basically just create a scripts dir with nodejs scripts in it and run via
tsx scripts/script-name
. Then it's like the above comments: just an issue of using the database.10 replies
Clearing form after action in solid-start
I tried out action's
onComplete
and feel that it may better belong with useSubmission
.
One reason is that having onComplete as a form clean up mechanism essentially requires it to be defined inside a component, thus the action would have to be defined inside the component as well. This makes named actions not reusable across multiple components.
Also, if an action is defined inside a component, we can do whatever form clearing or visual update (displaying error messages, success messages, etc.) inside the action async. onComplete doesn't really add value.
My 2 cents but I'm still new at this so there is a good chance this perspective is based on incomplete info.8 replies
CDCloudflare Developers
•Created by ctrl-z on 4/12/2025 in #workers-help
how to view console.log when running via `wrangler dev --remote`
what path are you referring to? I'm currently not getting log in production either (via cf dashboard). The content of my wrangler.jsonc is this
I'm trying to debug issues with the browser binding
3 replies