chirptune
Explore posts from serversHow to transform into getters outside of props?
When you pass a prop into a component it is transformed into a getter like
<MyProp color={color()}
, the props are { get color() { return color() } }
.
Is there a way to trigger such compile transformation for normal js code, like creating a normal object and transforming it into an object of getters?3 replies
How to reuse SSL session
In Ruby, you can create an openssl socket, reuse a session from another ssl socket, and then connect like this:
I have the impression that's not possible in deno right now, am I correct? I found this https://deno.com/blog/v1.7#tls-session-cache but no code showing how to use it.
4 replies
Why is solid start dev site so heavy?
I ran
pnpm create solid
, picked the basic template, then ran dev
to encounter almost 10mb of js being loaded. I'm aware that building will minify, bundle and tree shake most of this, but building takes almost 6 seconds to build an empty app, even when building after a succesful build.
Something as equally confusing is that the heaviest resource is 1.5mb of shikiji, a syntax highlighter.
I found this issue, maybe related? https://github.com/solidjs/solid-start/issues/12814 replies
Why am I seeing 500 errors on responses to clients in production?
I'm running my trpc server with NODE_ENV=production with the expressjs adapter, and I'm getting this in the response of a client.
[{"error":{"message":"connect ECONNREFUSED 127.0.0.1:5432","code":-32603,"data":{"code":"INTERNAL_SERVER_ERROR","httpStatus":500,"path":"budget"}}}]
I would expected the message to not show up, and just give a generic error message.
Why don't these errors get written to stdout
by default instead? Or maybe I don't have it setup correctly?14 replies
How to have reactive getters on each element?
Let's say I have a
createStore
, and I want each element to have a getter, how should I go about this?
I asked chat gpt, and he proposed this.
I think this looks ok enough, do you guys agree? Is there an alternative that lets you include getters right into the data I pass to createStore
?5 replies