mirror of
https://github.com/fosrl/pangolin.git
synced 2026-01-29 06:10:47 +00:00
fix useEffect re-render too many times
This commit is contained in:
@@ -178,18 +178,7 @@ export default function ValidateOidcToken(props: ValidateOidcTokenParams) {
|
||||
return () => {
|
||||
isCancelled = true;
|
||||
};
|
||||
}, [
|
||||
env.app.dashboardUrl,
|
||||
isLicenseViolation,
|
||||
props.code,
|
||||
props.expectedState,
|
||||
props.idpId,
|
||||
props.loginPageId,
|
||||
props.providerError,
|
||||
props.stateCookie,
|
||||
router,
|
||||
t
|
||||
]);
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<div className="flex items-center justify-center min-h-screen">
|
||||
|
||||
Reference in New Issue
Block a user