Alpine: See if there are any ideas worth borrowing from Mavo

Created on 26 Apr 2020  路  5Comments  路  Source: alpinejs/alpine

Mavo is another Angular-inspired HTML-first framework: https://mavo.io/ Its approach seems to be more all-in-one than Alpine, but it鈥檚 probably worth reading the docs and seeing if there鈥檙e any ideas worth stealing.

Most helpful comment

Aside: litte cool widget built with Mavo https://css.land/lch to illustrate lch

A bit less refined since I didn't have much time, but this would be the Alpine version https://codepen.io/SimoTod/full/RwWgWMo

All 5 comments

Yeah it has been around a long time, and I was wondering if there any experiences to be learned from it.

Aside: litte cool widget built with Mavo https://css.land/lch to illustrate lch

Interesting project, honestly I like that Alpine mostly works like I've come to expect from Vue/React with a restricted feature set (eg. No templating, just directives)

Yeah, reading through it, the only thing that really jumps out to me are maybe property and mv-storage. But they're both coming from the point of view of providing a rich framework instead of letting users build up from primitive pieces.

Aside: litte cool widget built with Mavo https://css.land/lch to illustrate lch

A bit less refined since I didn't have much time, but this would be the Alpine version https://codepen.io/SimoTod/full/RwWgWMo

Yeah, reading through it, the only thing that really jumps out to me are maybe property and mv-storage. But they're both coming from the point of view of providing a rich framework instead of letting users build up from primitive pieces.

I think persistence is not likely to be something Alpine core ever does, you can mostly reproduce this functionality using localStorage in x-data + $watch in x-init, obviously a bit of boilerplate but it's likely to be a pretty common "syncing" pattern that applies to the URL, localStorage, even a backend server if you wanted.

As it stands, are we ready to close this issue? Might be worth revisiting for v3

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hkan picture hkan  路  3Comments

maxsite picture maxsite  路  4Comments

bep picture bep  路  4Comments

aolko picture aolko  路  5Comments

imliam picture imliam  路  5Comments