Force Alpine component re-initialisation on hot reload
In a previous post I outlined a method for hot reloading Statamic's live preview using Alpine's Morph plugin. It works, but there's an issue: Alpine components on the page don't re-initialise when the DOM is morphed. Depending on the component, this can break things when the new… More