perf: no wait for session when calling getschedule 10552 cal 2311 (#10607)
* No batching on getting session * Fix usePublicPage hook to use new router search params * Move things so getSchedule data can be load as soon as we are rendering BookerComponent * pre fetch session * Removed custom code in favour of useTimePreferences --------- Co-authored-by: Alex van Andel <me@alexvanandel.com>
This commit is contained in:
1 parent
bee5011ec1
commit
fcd892bfa0
9 files changed
+129
-32
No files matched your search
@@ -31,5 +31,7 @@ export async function ssrInit(context: GetServerSidePropsContext) {
|
||||
// Provides a better UX to the users who have already upgraded.
|
||||
await ssr.viewer.teams.hasTeamPlan.prefetch();
|
||||
|
||||
await ssr.viewer.public.session.prefetch();
|
||||
|
||||
return ssr;
|
||||
}
|
||||
Reference in new issue
Block a user