Skip to content
Extraits de code Groupes Projets
Valider 97b3a204 rédigé par Steel's avatar Steel
Parcourir les fichiers

wip: data

parent 1539ad43
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
// import { GetPromotionStore, UserDetailsStore } from '$houdini';
// import { pageIterator } from '$lib/graphql/query';
// type Promotion = unknown[];
// const cache = new Map<number, Promotion>();
// function fetchPromotion(promotion: number) {
// return Array.fromAsync(pageIterator(event, GetPromotionStore, { promotion }));
// }
// export async function getPromotion(promo: number): Promise<Promotion> {
// if (cache.has(promo)) {
// return cache.get(promo)!;
// }
// const promotion = await fetchPromotion(promo);
// cache.set(promo, promotion);
// return promotion;
// }
// export async function* promotionIterator(
// min: number,
// max: number
// ): AsyncGenerator<Promotion, void, unknown> {
// for (let i = min; i <= max; i++) {
// yield getPromotion(i);
// }
// }
// export function getPromotionRange(min: number, max: number): Promise<Promotion> {
// return Array.fromAsync(promotionIterator(min, max));
// }
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter