Massukka
Massukka
Explore posts from servers
SSolidJS
Created by Massukka on 10/16/2024 in #support
&& in <Show> when condition and typescript?
Do you mean using ! When accessing signal to make element inside show parent? Doesn't that remove the benefits of typescript
27 replies
SSolidJS
Created by Massukka on 10/16/2024 in #support
&& in <Show> when condition and typescript?
Do you mean like this?
when={!!(
firstAndLastDate.data?.lastDate &&
firstAndLastDate.data?.firstDate &&
selectedDate()
)
}
when={!!(
firstAndLastDate.data?.lastDate &&
firstAndLastDate.data?.firstDate &&
selectedDate()
)
}
27 replies
SSolidJS
Created by Massukka on 10/5/2024 in #support
Anybody gotten trpcError not crash start during SSR?
It's been discussed in the past with regards to seroval. I guess I could still do repro
4 replies
SSolidJS
Created by Massukka on 10/5/2024 in #support
Anybody gotten trpcError not crash start during SSR?
I don't really get it. Seems like the trpc error just returns some basic json
4 replies
SSolidJS
Created by Massukka on 9/29/2024 in #support
Is it possible to show <Errorboundary> as toast/pop up?
I don't think I can get props.children of app.tsx to render simultaneously with that method. Is there some example code with catcherror somewhere?
7 replies
SSolidJS
Created by Massukka on 9/29/2024 in #support
Is it possible to show <Errorboundary> as toast/pop up?
I will look into those
7 replies
SSolidJS
Created by Temp Change on 6/1/2024 in #support
Solid and It's Ecosystem
I would like a type safe router like tanstack, but other than that I haven't really missed anything
4 replies
SSolidJS
Created by Massukka on 5/30/2024 in #support
Query vs data loader?
Yeah I think I will take your post for my solid start project post mortem blog.
9 replies
SSolidJS
Created by Massukka on 5/30/2024 in #support
Query vs data loader?
Thanks
9 replies
SSolidJS
Created by Massukka on 5/30/2024 in #support
Query vs data loader?
I guess just the size of solid query + trpc
9 replies
SSolidJS
Created by Massukka on 5/30/2024 in #support
Query vs data loader?
Afaik both get resolved in ssr, so I don't quite understand the difference
9 replies
SSolidJS
Created by Massukka on 5/26/2024 in #support
View transition api and solid start
I wrapped props.children with this component in app.tsx. Desktop works for the most part but i am still having issues with mobile browsers
11 replies
SSolidJS
Created by Massukka on 5/26/2024 in #support
View transition api and solid start
Thanks a lot. With your code it works pretty much always.
11 replies
SSolidJS
Created by Massukka on 5/26/2024 in #support
View transition api and solid start
It works like 70% of the time on routing. I have no idea on what situations it fails.
11 replies
SSolidJS
Created by Massukka on 2/9/2024 in #support
Should event: APIevent have client cookies on SSR?
I will try that later.
12 replies
SSolidJS
Created by Massukka on 2/9/2024 in #support
Should event: APIevent have client cookies on SSR?
const authQuery = createQuery(() => ({
queryKey: ["auth"],
queryFn: async () => {
const event = isServer ? getRequestEvent() : null;
return handleEden(
await eden.api.auth.status.get({
$fetch: {
headers: event
? {
...Object.fromEntries(event?.request.headers),
}
: "",
},
})
);
},
}));
const authQuery = createQuery(() => ({
queryKey: ["auth"],
queryFn: async () => {
const event = isServer ? getRequestEvent() : null;
return handleEden(
await eden.api.auth.status.get({
$fetch: {
headers: event
? {
...Object.fromEntries(event?.request.headers),
}
: "",
},
})
);
},
}));
Got it working, but wanted to see if you recommend some other way to do this
12 replies
SSolidJS
Created by Massukka on 2/9/2024 in #support
Should event: APIevent have client cookies on SSR?
Sorry, lol
12 replies
SSolidJS
Created by Massukka on 2/9/2024 in #support
Should event: APIevent have client cookies on SSR?
Big thanks. Yeah that makes sense. It's kind of like using axios you need to remember to add "usecredentials".
12 replies
SSolidJS
Created by Massukka on 2/9/2024 in #support
Should event: APIevent have client cookies on SSR?
What I am asking, should clients cookies be forwarded to bun?
12 replies
SSolidJS
Created by AnteG on 2/6/2024 in #support
[SOLVED] Solid Router v11 + TanStack Query issue
Not sure if same issue, but I just spend hour trying to fix same No QueryClient set, use QueryClientProvider issue. Deleting lockfile and node_modules fixed the error
5 replies