-
Hey folks. It could be I'm getting the syntax wrong here. I was playing around with v3.5 and tried the following code: document.addEventListener('alpine:init', () => {
Alpine.store('cookieBanner', {
open: Alpine.$persist(true).as('cookieBannerOpen'),
consent: Alpine.$persist(false).as('cookieBannerConsent'),
consentDate: Alpine.$persist(false).as('cookieBannerConsentDate'),
analyticsStorage: Alpine.$persist(false).as('cookieBannerAnalyticsStorage'),
adStorage: Alpine.$persist(false).as('cookieBannerAdStorage'),
})
}) This resulted in only the last variable persisting ( |
Beta Was this translation helpful? Give feedback.
Answered by
SimoTod
Nov 4, 2021
Replies: 1 comment 1 reply
-
Definitely a bug. I've raised a pr to fix it but in the meantime it works if you don't use aliases |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
robdekort
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Definitely a bug. I've raised a pr to fix it but in the meantime it works if you don't use aliases