Skip to content

Commit 159f1d5

Browse files
authored
fix: infinite loading (#298)
1 parent f76fb95 commit 159f1d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ microlink.io/${error.code.toLowerCase()}
156156
}
157157
}, [apiUrlProps, fetchData, apiUrl, mergeData, canFetchData])
158158

159-
useEffect(toFetchData, [toFetchData, url, setData, hasIntersected])
159+
useEffect(toFetchData, [url, setData, hasIntersected])
160160

161161
const isLoading = isLoadingUndefined ? loadingState : loading
162162

0 commit comments

Comments
 (0)