Skip to content

Commit 35e255b

Browse files
committed
fix: is result requested change mobx warning due to abort
1 parent cc8bbb5 commit 35e255b

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.changeset/tidy-needles-study.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"mobx-tanstack-query": patch
3+
---
4+
5+
fix is result requested change mobx warning due to abort

src/inifinite-query.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ export class InfiniteQuery<
157157

158158
observable.deep(this, '_result');
159159
observable.ref(this, 'isResultRequsted');
160+
action(this, 'handleAbort');
160161
action.bound(this, 'setData');
161162
action.bound(this, 'update');
162163
action.bound(this, 'updateResult');

src/query.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ export class Query<
142142

143143
observable.deep(this, '_result');
144144
observable.ref(this, 'isResultRequsted');
145+
action(this, 'handleAbort');
145146
action.bound(this, 'setData');
146147
action.bound(this, 'update');
147148
action.bound(this, 'updateResult');

0 commit comments

Comments
 (0)