perf: caching + modularize data fetching for team booking pages (#22172)
* wip * wip * wip * refactor * refactor * refactor * refactor * refactor * fix * better * fix * fix * use notFound * refactor * wip * refactor * wip * refactor * wip * wip * finalize * wip * fix * lots of refactors * better code * clean up * fix * fix type checks * finalize * select more fields * select more fields * fix * fix * fix * fix * better * better * fix * fix * fix * fix * add back comment * fix * better * fix * refactor * fix * fix type check * add comment * fix * wip * wip * add more comment * refactor * rename * refactors * fix reschedule logic * remove hard-coded true from isCachedEnabled * better * use revalidateTeamDataCache in team profile update * fix invalidation * better comment * refactors * add better comments * add revalidations * add comments * fix * remove hard code * fix * update tags * use features package * fix type check
This commit is contained in:
1 parent
e6da5c85e0
commit
c4eda5f21d
19 files changed
+932
-5
No files matched your search
@@ -23,6 +23,7 @@ export type AppFlags = {
|
||||
"use-api-v2-for-team-slots": boolean;
|
||||
pbac: boolean;
|
||||
"restriction-schedule": boolean;
|
||||
"team-booking-page-cache": boolean;
|
||||
};
|
||||
|
||||
export type TeamFeatures = Record<keyof AppFlags, boolean>;
|
||||
@@ -22,6 +22,7 @@ const initialData: AppFlags = {
|
||||
"use-api-v2-for-team-slots": false,
|
||||
pbac: false,
|
||||
"restriction-schedule": false,
|
||||
"team-booking-page-cache": false,
|
||||
};
|
||||
|
||||
if (process.env.NEXT_PUBLIC_IS_E2E) {
|
||||
|
||||
Reference in new issue
Block a user