How to Run Function Once On Load (then by Observer) in Polymer
问题 I am trying to run getResponse once when this web component loads, and then each time the procedure property changes. However, when trying to run this debounce function, it is invoked 4 times and getResponse runs after a delay, but 4 times instead of 1. static get properties() { return { procedure: { type: String, observer: 'getResponse' }, timeout: { type: Number, value: null } } } ready() { super.ready(); this.debounce(); } debounce() { console.log('debounce'); this.procedure =