OrJDev
320 posts

OrJDev retweetledi

Introducing: Solid-Socket
Building Realtime Apps Is Easy Again!
Just mark a file with "use socket", and write your code just like a regular client-side app
(#SolidHack 2024 entry, please vote!)

English
OrJDev retweetledi

@Mr_Chonky @TkDodo @aryan__deora That’s the issue, I can’t have it thrown during ssr haha otherwise i wouldn’t have even tweeted that. I need to set the error state without throwing the actual error. Solid query currently doesn’t handle errors thrown during ssr and it causes the state to freeze
English

@OrJDevv @TkDodo @aryan__deora Maybe throw it again in the catch block. Or just don't catch it at all and let the lib catch it
English

@TkDodo is there a way i could return an error via a query function rather than throwing it.
queryClient.setError(…)
Or
createQuery(()=> queryError(new Error(…));
The reason being, i have an app in production using Solid Query, however there is a bug when throwing on ssr
English

@TkDodo @aryan__deora This is my query
const q = createQuery(()=> {
return {
queryFn: ()=> {
try {
throw Error(…)
} catch {
// how do i set q.error to he this error
}
}
})
English

@TkDodo @aryan__deora I need a way to actually set the error state without it being thrown (during ssr solid query currently does not handle errors correctly).
So assuming i have a query function, what is the best way to set the error state on it considering the function provided does not throw
English

I think you meant your favorite server actions lib (pRPC). (Jk vote for all three)
Brenley Dueck@brenelz
Excuse me?! I think you mean your favorite is Solid Issue Tracker Lite. (jk vote for both) hack.solidjs.com/submissions
English

Votes for the 2024 @solid_js Hackathon are now live.
hack.solidjs.com/submissions
I made 2 submissions (2 different categories).
Best SolidStart App:
hackchat.dev
Best Ecosystem Utility:
mediakit-taupe.vercel.app/prpc/introduct…
English

@balazsorban44 @authjs
Meh, your gh issues automatically close my issues due to lack of information so i will just @ you here to lyk
github.com/nextauthjs/nex…
English

tired: useQuery custom hooks
wired: queryOptions abstractions
Dominik 🔮@TkDodo
@housecor @AArdvarkErick queryOptions is really good because it allows you to use the same "config" for multiple use- cases: useQuery(productOptions) useSuspenseQuery(productOptions) queryClient.prefetchQuery(productOptions) useQueries({ queries: [ productOptions, todoOptions] })
English

@jullerino @TkDodo Having this in addition to the current api is great, so devs can choose the api they want - and still having all the features you mentioned in the RFC, or stick to the old one because they don’t notice the issues you mentioned on daily basis
English

@jullerino @TkDodo IMO, this feels like going back in time. I think tRPC is an amazing project that changed how we write code nowadays, but the reasons you mentioned doesn’t justify to make the api worse (not actually bad but compared to where we got now).
Having this in addition is great
English





