Skip to content

Commit 62d414a

Browse files
committed
Fix package.json exports field
1 parent fb9cea5 commit 62d414a

File tree

5 files changed

+19659
-23
lines changed

5 files changed

+19659
-23
lines changed

babel.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ module.exports = function(api) {
66
"@babel/preset-react",
77
],
88
plugins: [
9-
"@babel/plugin-transform-runtime"
9+
"@babel/plugin-transform-runtime",
10+
"@babel/plugin-proposal-nullish-coalescing-operator"
1011
]
1112
}
1213
}

infinite-scroll/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const InfiniteScroll = ({
3535
const position = React.useRef(0);
3636
const thresholdReached = React.useRef(false);
3737
const abortRequest = React.useRef(false);
38-
const parentProps = innerProps ?? props;
38+
const parentProps = innerProps !== null && innerProps !== void 0 ? innerProps : props;
3939
const isEnded = getIsEnded(page, pageLimit, isLoading, error);
4040
const scrollCb = React.useCallback(event => {
4141
const {

0 commit comments

Comments
 (0)