@haniffalab/cherita-react 0.2.0-dev.2024-02-13.eda2add3 → 0.2.0-dev.2024-02-14.4bca94c0

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.
@@ -42,7 +42,7 @@ const useFetch = function (endpoint, params) {
42
42
  let opts = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
43
43
  const {
44
44
  data: fetchedData,
45
- isPending,
45
+ isLoading: isPending,
46
46
  error: serverError
47
47
  } = (0, _reactQuery.useQuery)({
48
48
  queryKey: [endpoint, params],
@@ -67,7 +67,7 @@ const useDebouncedFetch = function (endpoint, params) {
67
67
  const debouncedParams = (0, _usehooks.useDebounce)(params, delay);
68
68
  const {
69
69
  data: fetchedData,
70
- isPending,
70
+ isLoading: isPending,
71
71
  error: serverError
72
72
  } = (0, _reactQuery.useQuery)({
73
73
  queryKey: [endpoint, debouncedParams],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haniffalab/cherita-react",
3
- "version": "0.2.0-dev.2024-02-13.eda2add3",
3
+ "version": "0.2.0-dev.2024-02-14.4bca94c0",
4
4
  "author": "",
5
5
  "license": "",
6
6
  "main": "dist/index.js",
@@ -78,5 +78,5 @@
78
78
  "url": "https://github.com/haniffalab/cherita-react/issues"
79
79
  },
80
80
  "homepage": "https://github.com/haniffalab/cherita-react#readme",
81
- "prereleaseSha": "eda2add3ad64c64c815b53d5092db3b01c774183"
81
+ "prereleaseSha": "4bca94c0117a80874865051e666541948836dfb3"
82
82
  }