Hey @vercel folks, a @nextjs 13 RSC / App Layouts question. ๐โโ๏ธ
Is there any way of creating "forked versions" of code within my app w/o it being a lib?
I want to do some logic that behaves differently in RSC & `"use client"` (and the client shouldn't receive the RSC-code)
Is maybe `typeof window === "undefined"` magical & removes code from the client/server bundle including referenced imports? Can I use `process.browser` or equivalent?
๐ Thank you so much @alexdotjs for doubling your GitHub sponsoring. I'll put @trpcio on the front page of my blog asap!
I wish @github would send email notifications for these events, I almost missed it ๐
github.com/sponsors/TkDodo
๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐
that's 16 stars ๐
each of those represents a thousand people who've now starred @trpcio on GitHub, that is pretty damn crazy
We borrowed @remix_run's implementation on how they create a JSON representation of a specific type... then @s4chinraja improved it and fed that back into Remix!
OSS is pretty cool sometimes huh?
Also, follow @s4chinraja, he'll be your boss some day
You're cordially invited to the Andreessen Horowitz React.js Holiday Party on Dec 14! With amazing f&b, live jazz, incredible sponsors & networking opportunities, & 4 special guest speakers:
@tomocchino@mxstbr@alexdotjs@bdougieYO
See you there! RSVP๐
lu.ma/reactholidayparty2022/โฆ
We just published an update to @trpcio that automatically serializes your output types to how JSON does it, in case you are **not** using something like superjson.
tRPC without data transformers is now a lot better! ๐ฅณ
github.com/trpc/trpc/releaseโฆ
We should've done this earlier. I made an issue a long time ago, but ppl haven't complained about the current behavior & I use superjson myself so I haven't cared about "fixing" it either.
I guess most people use superjson๐คทโโ๏ธ