@trackunit/react-graphql-hooks 2.17.38 → 2.17.39

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
@@ -430,7 +430,7 @@ const usePaginationQuery = (document, props) => {
430
430
  }
431
431
  onReset();
432
432
  }, [document, onReset]);
433
- const { table: { setIsLoading, isLoading, setPageInfo, pageInfo, reset, nextPage, previousPage }, variables: { first, after, last, before }, } = reactComponents.useRelayPagination({
433
+ const { table: { setIsLoading, isLoading, setPageInfo, pageInfo, reset, nextPage, previousPage, resetCount }, variables: { first, after, last, before }, } = reactComponents.useRelayPagination({
434
434
  pageSize,
435
435
  onReset,
436
436
  initialCursor: props.initialCursor,
@@ -627,10 +627,11 @@ const usePaginationQuery = (document, props) => {
627
627
  previousData,
628
628
  loading: isLoading || lazyLoading,
629
629
  error: state.error,
630
- pagination: { setIsLoading, isLoading, setPageInfo, pageInfo, reset, nextPage, previousPage },
630
+ pagination: { setIsLoading, isLoading, setPageInfo, pageInfo, reset, nextPage, previousPage, resetCount },
631
631
  lastFetchedData: state.lastFetchedData,
632
632
  reset,
633
633
  }), [
634
+ resetCount,
634
635
  state.data,
635
636
  state.lastFetchedData,
636
637
  state.error,
package/index.esm.js CHANGED
@@ -428,7 +428,7 @@ const usePaginationQuery = (document, props) => {
428
428
  }
429
429
  onReset();
430
430
  }, [document, onReset]);
431
- const { table: { setIsLoading, isLoading, setPageInfo, pageInfo, reset, nextPage, previousPage }, variables: { first, after, last, before }, } = useRelayPagination({
431
+ const { table: { setIsLoading, isLoading, setPageInfo, pageInfo, reset, nextPage, previousPage, resetCount }, variables: { first, after, last, before }, } = useRelayPagination({
432
432
  pageSize,
433
433
  onReset,
434
434
  initialCursor: props.initialCursor,
@@ -625,10 +625,11 @@ const usePaginationQuery = (document, props) => {
625
625
  previousData,
626
626
  loading: isLoading || lazyLoading,
627
627
  error: state.error,
628
- pagination: { setIsLoading, isLoading, setPageInfo, pageInfo, reset, nextPage, previousPage },
628
+ pagination: { setIsLoading, isLoading, setPageInfo, pageInfo, reset, nextPage, previousPage, resetCount },
629
629
  lastFetchedData: state.lastFetchedData,
630
630
  reset,
631
631
  }), [
632
+ resetCount,
632
633
  state.data,
633
634
  state.lastFetchedData,
634
635
  state.error,
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entry.js","sourceRoot":"","sources":["../../../../../libs/react/graphql-hooks/migrations/entry.ts"],"names":[],"mappings":"","sourcesContent":["export {};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-graphql-hooks",
3
- "version": "2.17.38",
3
+ "version": "2.17.39",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -10,7 +10,7 @@
10
10
  "@trackunit/i18n-library-translation": "2.14.34",
11
11
  "@trackunit/shared-utils": "1.22.42",
12
12
  "es-toolkit": "^1.52.0",
13
- "@trackunit/react-components": "6.0.36"
13
+ "@trackunit/react-components": "6.0.37"
14
14
  },
15
15
  "peerDependencies": {
16
16
  "@apollo/client": "^3.13.8",