Skip to content

Commit

Permalink
Prøv å chaine requests
Browse files Browse the repository at this point in the history
  • Loading branch information
almyy committed Dec 10, 2024
1 parent c7a0303 commit 78db14e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Tilgangskontrollside/Tilgangskontrollside.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ const Tilgangskontrollside: React.FC<TilgangskontrollsideProps> = ({children, qu
const router = useRouter();
const {t} = useTranslation();
const sessionQuery = useDekoratorLogin();
const {error, isPending, data: harTilgangData} = useHarTilgang();
const {
error,
isPending,
data: harTilgangData,
} = useHarTilgang({query: {enabled: sessionQuery.status === "success"}});

console.log("sessionQuery.isLoading: ", sessionQuery.isPending);
console.log("sessionQuery.error: ", sessionQuery.error);
Expand Down

0 comments on commit 78db14e

Please sign in to comment.