* Binds the methods of the result (`refetch`) to the observer, so they keep working when destructured * from it. Subclasses override it to bind their own result methods as well.
()
| 107 | * from it. Subclasses override it to bind their own result methods as well. |
| 108 | */ |
| 109 | protected bindMethods(): void { |
| 110 | this.refetch = this.refetch.bind(this) |
| 111 | } |
| 112 | |
| 113 | protected override onSubscribe(): void { |
| 114 | if (this.listeners.size === 1) { |