4 ms·
I'm new to htmx and alpine, but isn't alpine's global store what you'd want in this case? https://alpinejs.dev/magics/store https://alpinejs.dev/magics/store
by jon1628492 5y ago
I'm new to htmx and alpine, but isn't alpine's global store what you'd want in this case? https://alpinejs.dev/magics/store https://alpinejs.dev/magics/store
- saimiam 5y ago(I'm not very familiar with Alpine and htmx but I'm comfortable with Vue and React.) Htmx pulls html content from the server and replaces inner|outerHTML with it. A JSON object (of the type React/Vue and presumably Alpine use) isn't a good fit to store html blobs and state.