ekwoka / alpine-plugins

Mono repo for various Alpine plugin packages
8 stars 2 forks source link

Error/Success handling for x-ajax #1

Closed josh-tt closed 1 year ago

josh-tt commented 1 year ago

Would be great if x-ajax provided users with response codes for handling errors, doing loading animations etc.

ekwoka commented 1 year ago

🤔 I'd imagine the best way would be with @load and @error handlers right? to mimic the more native behavior of object loading elements.

josh-tt commented 1 year ago

Not sure. I just use an alpine store for now which works ok for the loading animations at least. Errors not much of a concern as I'm fetching my own content

ekwoka commented 1 year ago

There could be a way to also key into the x-transition stuff 🤔

I'm doing some deep dives in Alpine right now, so I'll poke around

josh-tt commented 1 year ago

That would be handy. Good luck

ekwoka commented 1 year ago

Resolved in 0.3.0