@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 +2 -1
- package/index.esm.js +2 -1
- package/package.json +1 -1
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
|
-
|
|
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
|
-
|
|
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 () => {
|