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:
alannncandAlex van Andel authored and GitHub committed 2023-08-09 09:55:27 +01:00
1 parent bee5011ec1
commit fcd892bfa0
9 files changed
+129 -32

No files matched your search

+2
View File
@@ -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;
}