deviana
deviana
Explore posts from servers
TTCTheo's Typesafe Cult
Created by extinkt1 on 10/21/2023 in #questions
Server actions replacing TRPC?
Guys what do you think about this now ? With next.js v15 and react v19, It seems like we can stop using tRPC
12 replies
TTCTheo's Typesafe Cult
Created by samon on 4/19/2023 in #questions
is it possible to pass data from middleware to a server component?
@Jacob Thank you so much
11 replies
TTCTheo's Typesafe Cult
Created by deviana on 6/15/2024 in #questions
How to invalidate query made by trpc inside a RSC
unstable_cache may be similar to use query where you can attach a tag to the callback and you can revalidate it when needed
10 replies
TTCTheo's Typesafe Cult
Created by deviana on 6/15/2024 in #questions
How to invalidate query made by trpc inside a RSC
Also I want to mention that unstable_cache supposed to solve the problem but it didn't because in @/trpc/server we need the headers
10 replies
TTCTheo's Typesafe Cult
Created by deviana on 6/15/2024 in #questions
How to invalidate query made by trpc inside a RSC
But it definitly requires much less code to write
10 replies
TTCTheo's Typesafe Cult
Created by deviana on 6/15/2024 in #questions
How to invalidate query made by trpc inside a RSC
I don't know if this approach better than the other one you have mentioned
10 replies
TTCTheo's Typesafe Cult
Created by deviana on 6/15/2024 in #questions
How to invalidate query made by trpc inside a RSC
Thank you so much for your help I have tried router.refresh() and it works fine
10 replies
TTCTheo's Typesafe Cult
Created by samon on 4/19/2023 in #questions
is it possible to pass data from middleware to a server component?
But I don't know how :lol
11 replies
TTCTheo's Typesafe Cult
Created by samon on 4/19/2023 in #questions
is it possible to pass data from middleware to a server component?
I am thinking about creating a provider in the top layout and pass the id in it
11 replies
TTCTheo's Typesafe Cult
Created by samon on 4/19/2023 in #questions
is it possible to pass data from middleware to a server component?
But the problem I am facing now is how to access these data from a client component
11 replies
TTCTheo's Typesafe Cult
Created by samon on 4/19/2023 in #questions
is it possible to pass data from middleware to a server component?
Yes you can use cookies from "next/headers" and get the cookie you want, in my case I am trying to extract the token and decode then get the user id
11 replies
TTCTheo's Typesafe Cult
Created by mosesintech on 2/16/2024 in #questions
tRPC error handling
so many questions about trpc error handling in the app router but no answers
3 replies
TTCTheo's Typesafe Cult
Created by Fleck on 3/15/2024 in #questions
JS Error Handling Standards Links
so many questions about trpc error handling in the app router but no answers
3 replies
TTCTheo's Typesafe Cult
Created by v-for-v on 4/20/2024 in #questions
No example of error handling in the app router
so many questions about trpc error handling in the app router but no answers
3 replies
TTCTheo's Typesafe Cult
Created by deforestor on 5/2/2024 in #questions
TRPC error handling (on client) is confusing
so many questions about trpc error handling in the app router but no answers
4 replies
TTCTheo's Typesafe Cult
Created by rustclan on 9/3/2023 in #questions
TRPC error handling
so many questions about trpc error handling in the app router but no answers
4 replies