NitonFx
NitonFx
SSolidJS
Created by NitonFx on 10/29/2024 in #support
Vinci build API issue
I think I found a quite critical bug, or I did something wrong. Can someone maybe take a look and correct me? Or is this a vinxi or h3 or some other issue: https://github.com/solidjs/solid-start/issues/1664 Silent changing of compiled code can have bad effects
1 replies
SSolidJS
Created by NitonFx on 9/16/2024 in #support
"use server"; RPC calls cannot access global objects
I dont have a reproduction rn because stackblitz has no solid start option :/ basically i have a global Map<K,V> (export const mymap = ...)and values are inserted using a server route /api/login.ts and on SSR the value from the map is read correctly. But when i have a server rpc call the map appears empty
const someServerSideFunction = async ()=>{
"use server";
return Promise.resolve(mymap.get("abc"));
}
const someServerSideFunction = async ()=>{
"use server";
return Promise.resolve(mymap.get("abc"));
}
I ensured that the map is filled/empty by printint it out with JSON.stringify and console.log. Are these running somewhat in isolation? I printed the stacktrace for both calls and they seem very simmilar!
16 replies
SSolidJS
Created by NitonFx on 9/10/2024 in #support
Keeping data and code secure and on the server (restrict code to initial render)
Hi, I have questions regarding SSR & "use server"; What already works: 1. OAuth authentication where the client only has a uuid session but not any of the OAuth keys/tokens 2. When the client fetches a page, server action ... the server resolves the OAuth tokens based on the session UUID What i want to archive: 3. I can use the OAuth tokens to fetch data for components only on initial server render without exposing tokens to the client or code that deals with theese tokens
26 replies