Why Updating Alpine.js State with Direct Reassignment Fails (and How to Fix It)

from blog AndyJarrett.com, | ↗ original
Photo by Trevor Wilson on Unsplash Why Updating Alpine.js State with Direct Reassignment Fails (and How to Fix It) Reactivity is amazing, but when it fails its frustrating. And with that a stupid issue hit me recently because of direct reassignment of a variable that I did. In my defence I was reassigning the property this.formFields...