Update State Variables Automatically
Aug 11, 2023 · 2 min read · AlpineJS has a global state management system through its global variable named store. We can store a variable named total for a page loaded in the browser like this : document.addEventListener('alpine:init', () => { Alpine.store('global_data', ...
Join discussion























