@trackunit/react-graphql-hooks 1.0.41 → 1.0.45

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
@@ -280,6 +280,7 @@ const usePaginationQuery = (document, { ...props }) => {
280
280
  loading: isLoading,
281
281
  pagination: { setIsLoading, isLoading, setPageInfo, pageInfo, reset, nextPage, previousPage },
282
282
  lastFetchedData,
283
+ reset,
283
284
  };
284
285
  }, [data, isLoading, setIsLoading, setPageInfo, pageInfo, reset, nextPage, previousPage, lastFetchedData]);
285
286
  };
package/index.esm.js CHANGED
@@ -259,6 +259,7 @@ const usePaginationQuery = (document, { ...props }) => {
259
259
  loading: isLoading,
260
260
  pagination: { setIsLoading, isLoading, setPageInfo, pageInfo, reset, nextPage, previousPage },
261
261
  lastFetchedData,
262
+ reset,
262
263
  };
263
264
  }, [data, isLoading, setIsLoading, setPageInfo, pageInfo, reset, nextPage, previousPage, lastFetchedData]);
264
265
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-graphql-hooks",
3
- "version": "1.0.41",
3
+ "version": "1.0.45",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -10,9 +10,9 @@
10
10
  "@apollo/client": "3.10.4",
11
11
  "react": "18.3.1",
12
12
  "lodash": "4.17.21",
13
- "@trackunit/i18n-library-translation": "1.0.29",
14
- "@trackunit/shared-utils": "1.2.17",
15
- "@trackunit/react-table-pagination": "1.0.21"
13
+ "@trackunit/i18n-library-translation": "1.0.33",
14
+ "@trackunit/shared-utils": "1.2.21",
15
+ "@trackunit/react-table-pagination": "1.0.25"
16
16
  },
17
17
  "module": "./index.esm.js",
18
18
  "main": "./index.cjs.js",
@@ -8,6 +8,7 @@ export type PaginationQuery<TData> = {
8
8
  loading: boolean;
9
9
  lastFetchedData?: TData;
10
10
  pagination: RelayTableSupport;
11
+ reset: () => void;
11
12
  };
12
13
  export interface PaginationQueryProps<TData, TVariables extends ApolloClient.OperationVariables = ApolloClient.OperationVariables> extends ApolloClient.LazyQueryHookOptions<TData, TVariables> {
13
14
  /**