trpc refetchinterval
In the server-side component, how should I perform data access polling, for example, using refetchinterval
7 Replies
You do it in a client component
Is there room for optimization in implementing it this way?
Optimizing what?
that useEffect
the data returned for the first time will be undefined.
What do you need the useEffect for if you’re setting a refetchInterval?
thank you for your reminder, realize I wrote redundant code