Search
Setup for Free
TTC
Theo's Typesafe Cult
•
2y ago
birch
trpc refetchinterval
In the server
-side component
, how should I perform data access polling
, for example
, using refetchinterval
Theo's Typesafe Cult
Join
26,230
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
C
cje
•
1/10/24, 2:08 PM
You do it in a client component
B
birch
OP
•
1/10/24, 2:17 PM
C
cje
You do it in a client component
B
birch
OP
•
1/10/24, 2:18 PM
Is there room for optimization in implementing it this way
?
B
birch
Is there room for optimization in implementing it this way?
C
cje
•
1/10/24, 2:19 PM
Optimizing what
?
B
birch
OP
•
1/10/24, 2:20 PM
that useEffect
B
birch
OP
•
1/10/24, 2:21 PM
the data returned for the first time will be undefined
.
C
cje
•
1/10/24, 2:22 PM
What do you need the useEffect for if you
’re setting a refetchInterval
?
B
birch
OP
•
1/10/24, 2:24 PM
thank you for your reminder
, realize I wrote redundant code
Similar Threads
can anyone share an example on how to set react-query options with trpc like refetchInterval
TTC
Theo's Typesafe Cult / questions
3y ago
trpc
TTC
Theo's Typesafe Cult / questions
3y ago
trpc/react vs trpc/server
TTC
Theo's Typesafe Cult / questions
3y ago
tRPC Problem
TTC
Theo's Typesafe Cult / questions
3y ago