decord/source/modules/parent_tools/FamilyCenterAgeGroupPrefetch.tsx

28 lines
915 B
TypeScript
Raw Normal View History

// Module ID: 15571
// Function ID: 15572
// Name: FamilyCenterAgeGroupPrefetch
// Dependencies: [7640, 7642, 2]
2026-07-20 16:05:17 +00:00
// Exports: prefetchFamilyCenterAgeGroupWhen
// Module 15571 (FamilyCenterAgeGroupPrefetch)
import FamilyCenterActionCreatorsDefault from "FamilyCenterActionCreators" /* 7642 */;
import FamilyCenterStore from "FamilyCenterStore" /* 7640 */;
2026-07-23 10:11:24 +00:00
const size = fn(2);
const result = size.fileFinishedImporting("modules/parent_tools/FamilyCenterAgeGroupPrefetch.tsx");
2026-07-20 16:05:17 +00:00
export const prefetchFamilyCenterAgeGroupWhen = function prefetchFamilyCenterAgeGroupWhen(isFamilyCenterV3Enabled) {
let tmp = isFamilyCenterV3Enabled;
if (isFamilyCenterV3Enabled) {
tmp = null == FamilyCenterStore.getAgeGroup();
2026-07-20 16:05:17 +00:00
}
if (tmp) {
if (!FamilyCenterStore.isLoading()) {
2026-07-29 08:29:29 +00:00
if (obj.canRefetch()) {
FamilyCenterActionCreatorsDefault.initialPageLoad();
2026-07-20 16:05:17 +00:00
}
}
obj = FamilyCenterStore;
2026-07-20 16:05:17 +00:00
}
};