/
React Query Keys

React Query Keys

Key

Description

Key

Description

[ā€œdegreeā€]

Ā 

[ā€œplannerā€]

Ā 

[ā€œcoursesā€]

Ā 

Make more granular keys for better caching

BACKEND SCHEMA - For Reference:

# This is the top-level (lvl0) storage class that encapsulates everything class Storage(TypedDict): degree: DegreeLocalStorage planner: PlannerLocalStorage # Maps course-code to course object courses: dict[str, CoursesStorage] # # Level 1 Storages container # # The user's degree and specialisations - shouldn't change often class DegreeLocalStorage(TypedDict): programCode: str specs: list[str] isComplete: bool # "Planner" class PlannerLocalStorage(TypedDict): mostRecentPastTerm: MostRecentPastTerm unplanned: list[str] startYear: int isSummerEnabled: bool years: list[dict[str, list[str]]] courses: dict[str, dict] # class CoursesStorage(TypedDict): code: str suppressed: bool # pertains to if errors are suppressed mark: int

Ā 

Ā 

Related content