Merged in chore/upgrade-to-next16 (pull request #3305)
chore(SW-3665): Upgrade to Next 16 * Upgrade partner-sas * Upgrade scandic-web to next 16 * Update peerDep versions * Fix revalidateTag * Remove comment * Merge branch 'master' into chore/upgrade-to-next16 * Update netlify adapter * Build with webpack instead of turbopack * Revert from proxy to middleware * Merge branch 'master' into chore/upgrade-to-next16 * Revert proxy type * Fix react types versions * 16.0.9 * Bump to 16.0.10 Approved-by: Linus Flood
This commit is contained in:
@@ -45,6 +45,7 @@ function usePromptInitialization(memberKey: string | undefined) {
|
||||
})
|
||||
|
||||
const mutationRef = useRef(updateConsentPromptDate)
|
||||
// eslint-disable-next-line react-hooks/refs
|
||||
mutationRef.current = updateConsentPromptDate
|
||||
|
||||
const [shouldOpenInitially, setShouldOpenInitially] = useState(false)
|
||||
@@ -99,6 +100,7 @@ export default function ProfilingConsentModal({
|
||||
useUpdateProfilingConsent()
|
||||
|
||||
useEffect(() => {
|
||||
// eslint-disable-next-line react-hooks/set-state-in-effect
|
||||
if (shouldOpenInitially) setOpen(true)
|
||||
}, [shouldOpenInitially])
|
||||
|
||||
@@ -112,6 +114,7 @@ export default function ProfilingConsentModal({
|
||||
}, [memberKey])
|
||||
|
||||
useEffect(() => {
|
||||
// eslint-disable-next-line react-hooks/set-state-in-effect
|
||||
if (isSuccess) onClose()
|
||||
}, [isSuccess, onClose])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user