perf: /event-types/[type] — use server-fetched data to skip client-side trpc fetch (#20497)

This commit is contained in:
Benny Joo authored and GitHub committed 2025-04-04 09:43:04 +00:00
1 parent c2cf55f10c
commit 97308ebf1c
4 files changed
+21 -38

No files matched your search

@@ -4,8 +4,8 @@ import { EventTypeWebWrapper as EventType } from "@calcom/atoms/event-types/wrap
import type { PageProps } from "@lib/event-types/[type]/getServerSideProps";
const EventTypePageWrapper = ({ type, ...rest }: PageProps) => {
return <EventType {...rest} id={type} />;
const EventTypePageWrapper = ({ type, data }: PageProps) => {
return <EventType data={data} id={type} />;
};
export default EventTypePageWrapper;