@hairy/react-lib 1.36.0 → 1.36.1

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.
package/dist/index.cjs CHANGED
@@ -736,7 +736,7 @@ function defineStoreAsync(fetch, options = {}) {
736
736
  store.$state.loading = status.loading;
737
737
  store.$state.finished = status.finished;
738
738
  });
739
- options.immediate && store.fetch();
739
+ options.immediate && store.refetch();
740
740
  return store;
741
741
  }
742
742
  var defienAsyncStore = defineStoreAsync;
@@ -1463,7 +1463,7 @@ var LibReact = (() => {
1463
1463
  store.$state.loading = status.loading;
1464
1464
  store.$state.finished = status.finished;
1465
1465
  });
1466
- options.immediate && store.fetch();
1466
+ options.immediate && store.refetch();
1467
1467
  return store;
1468
1468
  }
1469
1469
  var defienAsyncStore = defineStoreAsync;
package/dist/index.js CHANGED
@@ -666,7 +666,7 @@ function defineStoreAsync(fetch, options = {}) {
666
666
  store.$state.loading = status.loading;
667
667
  store.$state.finished = status.finished;
668
668
  });
669
- options.immediate && store.fetch();
669
+ options.immediate && store.refetch();
670
670
  return store;
671
671
  }
672
672
  var defienAsyncStore = defineStoreAsync;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hairy/react-lib",
3
3
  "type": "module",
4
- "version": "1.36.0",
4
+ "version": "1.36.1",
5
5
  "description": "Library for react",
6
6
  "author": "Hairyf <wwu710632@gmail.com>",
7
7
  "license": "MIT",
@@ -38,7 +38,7 @@
38
38
  "react-dom": "^19.1.0",
39
39
  "react-i18next": "^14.1.2",
40
40
  "react-use": "^17.6.0",
41
- "@hairy/utils": "1.36.0"
41
+ "@hairy/utils": "1.36.1"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "tsup",