Skip to content

Commit 23288e2

Browse files
Merge pull request #614 from folio-org/release_7.0.6
Release 7.0.6
2 parents 113e2ac + 1888a90 commit 23288e2

3 files changed

Lines changed: 13 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Change history for stripes-erm-components
22

3+
## 7.0.6 2023-05-26
4+
* ERM-2929 InternalContactSelection gets stuck in fetch loop
5+
36
## 7.0.5 2023-01-24
47
* Actually export useInterfaces hook from custom hooks. (In fact export all hooks automatically from this point forwards)
58

lib/hooks/useBatchedFetch.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,16 @@ const useBatchedFetch = ({
5252
results?.length !== total &&
5353
results?.length < batchLimit
5454
) {
55-
fetchNextPage({ pageParam: (pageParams[-1] ?? 0) + safeBatchSize });
55+
fetchNextPage({ pageParam: (pageParams?.at(-1) ?? 0) + safeBatchSize });
5656
}
57-
});
57+
}, [
58+
batchLimit,
59+
fetchNextPage,
60+
pageParams,
61+
results?.length,
62+
safeBatchSize,
63+
total
64+
]);
5865

5966
return {
6067
results,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@folio/stripes-erm-components",
3-
"version": "7.0.5",
3+
"version": "7.0.6",
44
"description": "Component library for Stripes ERM applications",
55
"sideEffects": [
66
"*.css"

0 commit comments

Comments
 (0)