alpinejs / alpine

A rugged, minimal framework for composing JavaScript behavior in your markup.
https://alpinejs.dev
MIT License
27.92k stars 1.22k forks source link

:bug: Initializes Interceptors before store #4278

Closed ekwoka closed 2 months ago

ekwoka commented 2 months ago

Solves #4248

Stores were running their init method before interceptors were handled.

This handles interceptors first, just like how data does.

calebporzio commented 2 months ago

This is great, I think I actually ran into this the other day making a dark mode store and wanting to persist the value. Legend ❤️