@astral/mobx-query 1.7.0 → 1.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { action, computed, makeObservable, when } from 'mobx';
1
+ import { action, computed, makeObservable, observable, when } from 'mobx';
2
2
  import { AuxiliaryQuery } from '../AuxiliaryQuery';
3
3
  import { QueryContainer } from '../QueryContainer';
4
4
  export const DEFAULT_INFINITE_ITEMS_COUNT = 30;
@@ -46,8 +46,6 @@ export class InfiniteQuery extends QueryContainer {
46
46
  * Форс метод для установки данных
47
47
  */
48
48
  this.forceUpdate = (data) => {
49
- this.offset = 0;
50
- this.isEndReached = false;
51
49
  this.auxiliary.submitSuccess();
52
50
  this.submitSuccess(data);
53
51
  };
@@ -130,6 +128,7 @@ export class InfiniteQuery extends QueryContainer {
130
128
  sync: action,
131
129
  fetchMore: action,
132
130
  submitSuccess: action,
131
+ isEndReached: observable,
133
132
  });
134
133
  }
135
134
  get isNetworkOnly() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astral/mobx-query",
3
- "version": "1.7.0",
3
+ "version": "1.7.2",
4
4
  "browser": "./index.js",
5
5
  "main": "./index.js",
6
6
  "dependencies": {