alpinejs / alpine

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

Fix getting the old value in deep watching #4406

Open Suall1969 opened 2 weeks ago

Suall1969 commented 2 weeks ago

This addresses the issue with old value in deep watching as described in #3293. In contrast to #3046 and #3617, this PR relies exclusively on the strcuturedClone API and falls back to the current behaviour if not available, drastically simplifying things.