Kooki Kodes
Any tip/checklist to debug Solid components when it refuses to react the signal changed?
Well because there is no virtual dom, there's not really an easy solution per say. Maybe it'd help to look at the source code of the
<Show />
component so you could get an idea of how it's properly done.
You'd most likely end up with a similar solution. You'd have all of you're logic within a createMemo so you could subscribe to changes and then just return that from your component.9 replies
Any tip/checklist to debug Solid components when it refuses to react the signal changed?
Yeah, there's also the:
<Switch/>
<Match/>
components if you have several conditions.
https://docs.solidjs.com/reference/components/switch-and-match9 replies
Super slow _server function
I haven't, but I haven't had problems with it previously. As in the package it used to use
import.meta.env
for all of the environment variables. But realized that there are some that needed to remain private and not exposed to the client. Hence I use process.env for private variables.16 replies
Super slow _server function
Not sure why, but the issue has nothing to do with the above code...
You see I have a middleware that needs to use the
process.env
and when I build and start the server locally with the added prefixed env's causes the server functions to be significantly slower.16 replies
Super slow _server function
Well this is certainly weird. I'm not too sure why it would work this way...
But the following code makes the whole server take FOREVER to run. This code is being imported from an external library.
This is what I'm doing within the actual app:
16 replies
Weird solid start behavior
Ahhh, okay, so you can't have
vinxi/http
imports in the same files that you have client facing code.
Isn't this something that could be fixed during build?
All I'm doing is getting cookies from a server function.6 replies