Skip to content

8.28.1

Choose a tag to compare

@github-actions github-actions released this 20 Jul 13:37
0667842

@comet/site-nextjs@8.28.1

Patch Changes

  • 4cacb0c: Fix client-side crash in useCookieBotCookieApi when Cookiebot is not yet initialized

    The hook read window.Cookiebot.consent in its initial call, but window.Cookiebot exists as soon as the Cookiebot script has run, while consent is only populated once Cookiebot fires CookiebotOnConsentReady. Calling Object.keys(consent) before that threw TypeError: 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 useCookieBotCookieApi when Cookiebot is not yet initialized

    The hook read window.Cookiebot.consent in its initial call, but window.Cookiebot exists as soon as the Cookiebot script has run, while consent is only populated once Cookiebot fires CookiebotOnConsentReady. Calling Object.keys(consent) before that threw TypeError: Cannot convert undefined or null to object, crashing the client. The initial call is now a no-op until consent is available.