@trackunit/react-graphql-hooks 0.0.15 → 0.0.17

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
@@ -201,7 +201,8 @@ const usePaginationQuery = (document, props) => {
201
201
  }, [setIsLoading, props, fetchMore, setPageInfo]);
202
202
  react.useEffect(() => {
203
203
  setData(undefined);
204
- }, [props.variables]);
204
+ reset();
205
+ }, [props.variables, reset]);
205
206
  react.useEffect(() => {
206
207
  const abortController = doFetchMore({ first, last: undefined, before: undefined, after: undefined }, undefined);
207
208
  return () => {
package/index.esm.js CHANGED
@@ -177,7 +177,8 @@ const usePaginationQuery = (document, props) => {
177
177
  }, [setIsLoading, props, fetchMore, setPageInfo]);
178
178
  useEffect(() => {
179
179
  setData(undefined);
180
- }, [props.variables]);
180
+ reset();
181
+ }, [props.variables, reset]);
181
182
  useEffect(() => {
182
183
  const abortController = doFetchMore({ first, last: undefined, before: undefined, after: undefined }, undefined);
183
184
  return () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-graphql-hooks",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {