-
Notifications
You must be signed in to change notification settings - Fork 9.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf: fetch data server side for /settings/webhooks #20583
perf: fetch data server side for /settings/webhooks #20583
Conversation
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (04/07/25)1 reviewer was added to this PR based on Keith Williams's automation. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
import SettingsHeader from "@calcom/features/settings/appDir/SettingsHeader"; | ||
import { SkeletonLoader } from "@calcom/features/webhooks/pages/webhooks-view"; | ||
|
||
export default function Loading() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const { data, isPending } = trpc.viewer.webhook.getByViewer.useQuery(undefined, { | ||
enabled: session.status === "authenticated", | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved to RSC (/webhooks/page.tsx)
E2E results are ready! |
…r-side-settings-webhooks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested:
- Switching between pages to ensure data is loaded via RSC call
- No extra tRPC call is made on client-side
- Can remove, edit and delete webhooks
What does this PR do?
Mandatory Tasks (DO NOT REMOVE)
How should this be tested?
Screen.Recording.2025-04-07.at.6.14.47.AM.mov