sincere666
TTCTheo's Typesafe Cult
•Created by _-/=elusive1sTh3Byte=-\_ on 1/3/2024 in #questions
Developing a UI without a design
Take this website as example: https://unbound-studio.vercel.app
I made it without any design prototype whatsoever, except for some little copycat and modification from someone design in dribbble
55 replies
TTCTheo's Typesafe Cult
•Created by Xanacas on 1/4/2024 in #questions
Typescript bug or am I stupid?
Yes, it's scoping and garbage collection thing, you need to recheck the pi.latest_charge inside the findIndex()
4 replies
TTCTheo's Typesafe Cult
•Created by G.A.S on 11/4/2023 in #questions
Issue with 'use client' Directive and SSR in Next.js: Conflicting Errors and Resolution"
21 replies
TTCTheo's Typesafe Cult
•Created by G.A.S on 11/4/2023 in #questions
Issue with 'use client' Directive and SSR in Next.js: Conflicting Errors and Resolution"
Okay no probs, how you export the files in index.ts? Is it like export * from '...'?
21 replies
TTCTheo's Typesafe Cult
•Created by G.A.S on 11/4/2023 in #questions
Issue with 'use client' Directive and SSR in Next.js: Conflicting Errors and Resolution"
have you tried to pass the children like this? :
<ClientLayout>
{children}
</ClientLayout>
21 replies
TTCTheo's Typesafe Cult
•Created by G.A.S on 11/4/2023 in #questions
Issue with 'use client' Directive and SSR in Next.js: Conflicting Errors and Resolution"
That's why many people still prefer the /pages version
21 replies
TTCTheo's Typesafe Cult
•Created by G.A.S on 11/4/2023 in #questions
Issue with 'use client' Directive and SSR in Next.js: Conflicting Errors and Resolution"
Actually it is, but since the new /app dir update, trpc hasn't yet figured out the new solution for RSC
21 replies
TTCTheo's Typesafe Cult
•Created by G.A.S on 11/4/2023 in #questions
Issue with 'use client' Directive and SSR in Next.js: Conflicting Errors and Resolution"
you can make two routes like : /api/signin and /api/signup to implement both methods
21 replies
TTCTheo's Typesafe Cult
•Created by G.A.S on 11/4/2023 in #questions
Issue with 'use client' Directive and SSR in Next.js: Conflicting Errors and Resolution"
I think you have no other way except to extract the code to an /api route and call that route with fetch inside this client-side AuthForm component
21 replies
TTCTheo's Typesafe Cult
•Created by G.A.S on 11/4/2023 in #questions
Issue with 'use client' Directive and SSR in Next.js: Conflicting Errors and Resolution"
So the problem is next/headers should be used inside a "server component"
21 replies
TTCTheo's Typesafe Cult
•Created by G.A.S on 11/4/2023 in #questions
Issue with 'use client' Directive and SSR in Next.js: Conflicting Errors and Resolution"
can you show the code inside /trpc/server?
21 replies
TTCTheo's Typesafe Cult
•Created by ethan on 11/4/2023 in #questions
If a Next.js 13 Layout is a clientcomponent, is the page automatically a client component as well?
as long as you pass the children like this:
<ClientLayout>
{children}
</ClientLayout>
your child component should be fine to be server rendered
5 replies