noahN
tRPC3y ago
2 replies
noah

How to refetch a call made on the server

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?
Was this page helpful?