$watch doesn't return the old value #3467
Replies: 4 comments 5 replies
-
|
Alpine has issues closed. Only discussions. Technically, your code is working, and it is returning the old value. The old value is also the same object as the new value. |
Beta Was this translation helpful? Give feedback.
-
|
@Babelfisch we are now using discussions to track bugs and ideas instead of issues. See this announcement for more details #1423 |
Beta Was this translation helpful? Give feedback.
-
|
I am facing the same issue. Is there any known workaround? How can i get the old value of the json object? |
Beta Was this translation helpful? Give feedback.
-
|
Also facing this issue as well! I'd appreciate if that limitation could be better documented in the deep-watching section of the docs, or if someone could take a look at #4406. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I tried this simple code of the
$watchdocumentation for deep watching:The expected output is:
But the real output is:
Tested with Safari and Chrome and AlpineJS 3.12.0 and 3.11.1
BTW: Why it's not possible to open a issue?
Beta Was this translation helpful? Give feedback.
All reactions