fix: cards fetch optimization

This commit is contained in:
2025-04-15 10:59:56 +04:00
parent 5487aab274
commit 9ce112fd63
22 changed files with 523 additions and 324 deletions

View File

@@ -4,7 +4,7 @@ import { CardSchema, CardService } from "../../../client";
type CardPageContextState = {
selectedCard?: CardSchema;
setSelectedCard: (card: CardSchema | undefined) => void;
refetchCards: () => Promise<void>;
refetchCards: () => void;
refetchCard: () => void;
};
@@ -13,7 +13,7 @@ const CardPageContext = createContext<CardPageContextState | undefined>(
);
type CardPageContextStateProps = {
refetchCards: () => Promise<void>;
refetchCards: () => void;
defaultCardId?: number;
}