@trackunit/react-graphql-hooks 1.21.4 → 1.21.7

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/index.cjs.js CHANGED
@@ -426,10 +426,7 @@ const usePaginationQuery = (document, props) => {
426
426
  return;
427
427
  }
428
428
  dispatch({ type: "SET_ERROR", payload: error });
429
- if (onErrorRef.current) {
430
- return onErrorRef.current(error);
431
- }
432
- throw error;
429
+ onErrorRef.current?.(error);
433
430
  });
434
431
  }, [
435
432
  props.skip,
package/index.esm.js CHANGED
@@ -424,10 +424,7 @@ const usePaginationQuery = (document, props) => {
424
424
  return;
425
425
  }
426
426
  dispatch({ type: "SET_ERROR", payload: error });
427
- if (onErrorRef.current) {
428
- return onErrorRef.current(error);
429
- }
430
- throw error;
427
+ onErrorRef.current?.(error);
431
428
  });
432
429
  }, [
433
430
  props.skip,
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@trackunit/react-graphql-hooks",
3
- "version": "1.21.4",
3
+ "version": "1.21.7",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
7
7
  "node": ">=24.x"
8
8
  },
9
9
  "dependencies": {
10
- "@trackunit/i18n-library-translation": "1.18.2",
10
+ "@trackunit/i18n-library-translation": "1.18.3",
11
11
  "@trackunit/shared-utils": "1.13.97",
12
12
  "es-toolkit": "^1.39.10",
13
- "@trackunit/react-components": "1.21.15"
13
+ "@trackunit/react-components": "1.21.18"
14
14
  },
15
15
  "peerDependencies": {
16
16
  "@apollo/client": "^3.13.8",