t
tRPC
N
tRPC
•
3y ago
•
2 replies
noah
How to refetch a call made on the server
const
section
=
await
api.course.getCourseSection.
query
({
sectionId:
parseInt
(params.lesson),
});
const
section
=
await
api.course.getCourseSection.
query
({
sectionId:
parseInt
(params.lesson),
});
I need to refetch this when some button is clicked
(or if easier
, when some query string param is changed
)
, but this component NEEDS to be a server component unfortunately
. How can I revalidate this tRPC call
?
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
how to refresh a request made on server from client side?
A
Adam Borygo / ❓-help
8mo ago
How to refetch based on different event
D
dotdotdot / ❓-help
3y ago
tRPC Call To Server
V
Vengeance / ❓-help
4y ago