You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What's the recommended way to signal a change on an array when we're not using the helper methods? For instance, if I want to sort an array, what's the best way to let Polymer know something has changed? At the moment I'm using this.set('myArray', myArray.slice(0)); but is there a better way?
The text was updated successfully, but these errors were encountered:
Right now, Polymer's array observation doesn't support observing in-place array sorts, so the workaround you are using is probably the best option at the moment if you absolutely need to sort the actual array for some app-specific reason.
What's the recommended way to signal a change on an array when we're not using the helper methods? For instance, if I want to sort an array, what's the best way to let Polymer know something has changed? At the moment I'm using
this.set('myArray', myArray.slice(0));
but is there a better way?The text was updated successfully, but these errors were encountered: