-
-
Notifications
You must be signed in to change notification settings - Fork 420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable cookieconsent on reactive variable #630
Comments
If the variable can be accessed on the client side, then you can achieve this via the For example, assuming the variable is called "isLoggedIn" and that it's a boolean, you would have to do something like this: CookieConsent.run({
autoShow: isLoggedIn !== true
...
}) |
Thanks! I combined this logic with a watch to show/hide when user is logging out/in so it feels seemless:
|
I would suggest using the |
What would be the best way to disable the popping up of the cookie consent when a variable that can be accessed from everywhere (authed) is set to true? I want to keep the whole default functionality (if no cookies are chosen show the cookie consent) but make an exception for when the user is logged in. Thanks for the help!
Originally posted by @Reconnact in #629
The text was updated successfully, but these errors were encountered: