Julio Barros
Explore posts from serverscascading createRouteData
Hi, I'm using SolidStart sometimes want to create a routeData function with two createRouteData calls where one depends on the other. For example I may have the todo.id but need to fetch the todo to get the todo.listId is there a good pattern to do this? I don't always control the backend so can't fetch both pieces of data in one call (ie. todoWithList or something). TIA.
1 replies
Running a script in a solid start project
Hi, I'd like to run a script, to seed my db, in a solid start project.
I thought id just be able to
npx ts-node src/foo.ts
but I get an error TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts"
Any ideas on how to get this to work? TIA.5 replies
Using signal in child component
Hi,
I'm new to all this and am trying to figure out how to control a signal from a child component.
In my case I'm using solid-bootstrap to present a modal. The modal showing and hiding is triggered by a signal 'show' which is set by a button to show it and a cancel button to hide it.
It all works great in one big component but I'd like to break the modal out to another component and have it be able to close itself. Since it opens with a button in the parent I think I need the signal there, but when I try to pass it to the child as a function <MyModal setShow={setShow} /> it does not work.
What is a good way to structure something like this?
Thanks in advance.
10 replies
Events (oninput on keyup) stopped working?
I just asked in the solid-start channel but this may be a bigger issue than that. I may have done something dumb but I'm using solid start and my event handlers have stopped working. They were fine a little while ago but now none of them seem to fire (the value never changes). I've even gone back to the tutorial to get a basic example (code below) and it does not work. Any ideas on what I could have goofed up? I don't see any errors or warnings in either the browser console or the server window.
24 replies