FIX: cancels fetching messages when pane is destroyed (#19642)
Ultimately we would want a cleaner solution here where we correctly cancel in `willDestroy` hook but this is the safest move for now.
This commit is contained in:
parent
ec1a7df112
commit
8a792bdf0b
|
@ -229,6 +229,10 @@ export default Component.extend({
|
|||
|
||||
@debounce(100)
|
||||
fetchMessages(channel, options = {}) {
|
||||
if (this._selfDeleted) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.set("loading", true);
|
||||
|
||||
return this.chat.loadCookFunction(this.site.categories).then((cook) => {
|
||||
|
|
Loading…
Reference in New Issue