Sudhagar
Sudhagar
SSolidJS
Created by Sudhagar on 11/21/2024 in #support
Does createAsync cause double renders on the server i.e an extra render after data becomes available
deferStream: true/false doesn't have any different - both the cases, the components runs twice. I haven't set deferStream. This is what I understand is happening. Correct me if I am wrong. Server does a render of the component when client requests for it the first time and streams whatever HTML it has over the wire. Now when async resolves on the server side and again the server does render of the component.
5 replies
SSolidJS
Created by Sudhagar on 5/10/2024 in #support
The requestEvent in the middleware is different from requestEvent from getRequestEvent in the same
Btw, I don't have a "use server" in the file where I am making getRequestEvent(). If I add that, will it behave the way I am expecting it to behave?
6 replies
SSolidJS
Created by Sudhagar on 5/10/2024 in #support
The requestEvent in the middleware is different from requestEvent from getRequestEvent in the same
Since middleware and where I am doing another function call for getRequestEvent are two hops apart, I opted to do getRequestEvent instead of passing it around.
6 replies
SSolidJS
Created by Sudhagar on 5/10/2024 in #support
The requestEvent in the middleware is different from requestEvent from getRequestEvent in the same
This definitely helps. Thanks for the clarification.
6 replies
SSolidJS
Created by Sudhagar on 5/3/2024 in #support
Getting Object.hasOwn is not a function on older browsers. Attaching the trace
Thanks
7 replies
SSolidJS
Created by Sudhagar on 5/3/2024 in #support
Getting Object.hasOwn is not a function on older browsers. Attaching the trace
Ah got it
7 replies
SSolidJS
Created by Sudhagar on 4/18/2024 in #support
I see my Solid Start app downloading tons of ts, tsx, scss files - Attaching Screenshot
No description
8 replies
SSolidJS
Created by Sudhagar on 4/18/2024 in #support
I see my Solid Start app downloading tons of ts, tsx, scss files - Attaching Screenshot
>In production most of them will be bundled into a few files, so you won't see this behaviour @Brendonovich Right. This is production, so not sure why the files are served individually
8 replies
SSolidJS
Created by Sudhagar on 4/1/2024 in #support
"Cannot call server function outside of a request" in onRequest middlware hook
sso login failed Error: Cannot call server function outside of a request
at Object.apply (file:///var/task/chunks/runtime.mjs:6123:13)
at Ue.onRequest (file:///var/task/chunks/runtime.mjs:6777:23)
at file:///var/task/chunks/runtime.mjs:6560:34
at _callHandler (file:///var/task/chunks/runtime.mjs:2921:13)
at Object._handler [as handler] (file:///var/task/chunks/runtime.mjs:2908:12)
at file:///var/task/chunks/runtime.mjs:3047:31
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.callAsync (file:///var/task/chunks/runtime.mjs:5341:16)
at async toNodeHandle (file:///var/task/chunks/runtime.mjs:3313:7)
at async Server.<anonymous> (/opt/node-bridge/bridge-server-CNJTFAIF.js:1:9585)
sso login failed Error: Cannot call server function outside of a request
at Object.apply (file:///var/task/chunks/runtime.mjs:6123:13)
at Ue.onRequest (file:///var/task/chunks/runtime.mjs:6777:23)
at file:///var/task/chunks/runtime.mjs:6560:34
at _callHandler (file:///var/task/chunks/runtime.mjs:2921:13)
at Object._handler [as handler] (file:///var/task/chunks/runtime.mjs:2908:12)
at file:///var/task/chunks/runtime.mjs:3047:31
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.callAsync (file:///var/task/chunks/runtime.mjs:5341:16)
at async toNodeHandle (file:///var/task/chunks/runtime.mjs:3313:7)
at async Server.<anonymous> (/opt/node-bridge/bridge-server-CNJTFAIF.js:1:9585)
The first ever trigger of the route, I see this. Doesn't happen on subsequent triggers
3 replies