-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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: don't fetch all the hosts [DO NOT MERGE] #18319
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (12/21/24)1 reviewer was added to this PR based on Keith Williams's automation. "Add foundation team as reviewer" took an action on this PR • (12/23/24)1 reviewer was added to this PR based on Keith Williams's automation. |
E2E results are ready! |
@@ -178,7 +178,7 @@ const EmailEmbed = ({ | |||
], | |||
shallow | |||
); | |||
const event = useEvent(); | |||
const event = useEvent({ limitHostsToThree: true }); |
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.
we don't need all the hosts on the front end
select: userSelect, | ||
}, | ||
}, | ||
...(limitHostsToThree ? { take: 3 } : {}), |
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.
We would still need all the hosts for single event type page so we don't want the limit everytime
What does this PR do?
Testing if we need all the hosts. Do not merge this PR
Same event type with 1300+ hosts
BEFORE:-
AFTER:-
Mandatory Tasks (DO NOT REMOVE)
How should this be tested?