-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$watch doesn't work with Array.prototype.push #383
Comments
Hi @FYITom, I'd probably use I modified your CodePen here (https://codepen.io/ryangjchandler/pen/rNOxyLE?editors=1111) with the changes and the watcher is now reacting. If you're okay with this, then please close the issue. If you want some further help, just ask, there's always someone here! |
Is this a |
Yeah exactly. I've had trouble with |
|
Yeah exactly that. I think the PR could be tidied up a little before being reviewed / merged too. |
Thank you very much for that, makes complete sense to me. |
I had the same issue with a |
Deep watchers are not supported yet. The watcher triggers only if you reassign the variable but not if you change it's internal state. |
I know this is old but this thread just got me out of a four hour Thanks @ryangjchandler for answering and @FYITom for asking (and both working off a Codepen demo). |
CodePen show's the issue, check the console.log when toggling filters.
https://codepen.io/TomS-/pen/NWGxdzv
The text was updated successfully, but these errors were encountered: