mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 07:38:33 -06:00
moving data to be held by react query
This commit is contained in:
@@ -5,6 +5,6 @@ import { fileStorageService } from "@/services/fileStorage/fileStorageService";
|
||||
export const hydrateCourses = async (queryClient: QueryClient) => {
|
||||
await queryClient.prefetchQuery({
|
||||
queryKey: localCourseKeys.allCourses,
|
||||
queryFn: async () => await fileStorageService.loadSavedCourses(),
|
||||
queryFn: async () => await fileStorageService.getCourseNames(),
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user