8.28.1
@comet/site-nextjs@8.28.1
Patch Changes
-
4cacb0c: Fix client-side crash in
useCookieBotCookieApiwhen Cookiebot is not yet initializedThe hook read
window.Cookiebot.consentin its initial call, butwindow.Cookiebotexists as soon as the Cookiebot script has run, whileconsentis only populated once Cookiebot firesCookiebotOnConsentReady. CallingObject.keys(consent)before that threwTypeError: Cannot convert undefined or null to object, crashing the client. The initial call is now a no-op until consent is available.
@comet/site-react@8.28.1
Patch Changes
-
4cacb0c: Fix client-side crash in
useCookieBotCookieApiwhen Cookiebot is not yet initializedThe hook read
window.Cookiebot.consentin its initial call, butwindow.Cookiebotexists as soon as the Cookiebot script has run, whileconsentis only populated once Cookiebot firesCookiebotOnConsentReady. CallingObject.keys(consent)before that threwTypeError: Cannot convert undefined or null to object, crashing the client. The initial call is now a no-op until consent is available.