chore(deps): update dependency @tanstack/react-query to v5 (#2404)
* fix(deps): update dependency @tanstack/react-query to v5 * chore: update for compatibility with React Query v5 * chore: update for compatibility with React Query v5 * test: update tests --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Braden MacDonald <braden@opencraft.com>
This commit is contained in:
@@ -8,7 +8,7 @@ import { getWaffleFlags, waffleFlagDefaults } from './api';
|
||||
export const useWaffleFlags = (courseId?: string) => {
|
||||
const queryClient = useQueryClient();
|
||||
|
||||
const { data, isLoading, isError } = useQuery({
|
||||
const { data, isPending: isLoading, isError } = useQuery({
|
||||
queryKey: ['waffleFlags', courseId],
|
||||
queryFn: () => getWaffleFlags(courseId),
|
||||
// Waffle flags change rarely, so never bother refetching them:
|
||||
|
||||
Reference in New Issue
Block a user