[as] feat: 재원협의 쿼리 무효화 로직 수정
This commit is contained in:
@@ -44,9 +44,9 @@ function PbadmsDetailGate({
|
||||
const router = useRouter();
|
||||
|
||||
useEffect(() => {
|
||||
if (!shouldRedirectToEdit) return;
|
||||
if (isPending || !shouldRedirectToEdit) return;
|
||||
router.replace(editHref);
|
||||
}, [editHref, router, shouldRedirectToEdit]);
|
||||
}, [editHref, isPending, router, shouldRedirectToEdit]);
|
||||
|
||||
if (isPending || shouldRedirectToEdit) return <DetailSkeleton />;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user