Skip to content

Commit 0344602

Browse files
committed
feat(ConnectViewport): remove deprecated connectViewportScroll connector
1 parent 62dc841 commit 0344602

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

examples/StickyScrollUp.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from 'react';
2-
import { ObserveBoundingClientRect, connectViewportScroll } from '../lib/index';
2+
import { ObserveBoundingClientRect, connectViewport } from '../lib/index';
33
import { connect as connectStickyGroup } from './StickyGroup';
44

55
interface IProps {
@@ -96,4 +96,4 @@ class StickyScrollUp extends React.PureComponent<IProps> {
9696
}
9797
}
9898

99-
export default connectStickyGroup()(connectViewportScroll()(StickyScrollUp));
99+
export default connectStickyGroup()(connectViewport()(StickyScrollUp));

lib/index.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
export { default as ViewportProvider } from './ViewportProvider';
2-
export {
3-
/**
4-
* @deprecated use connectViewport instead
5-
*/
6-
default as connectViewportScroll,
7-
default as connectViewport,
8-
} from './ConnectViewport';
2+
export { default as connectViewport } from './ConnectViewport';
93
export {
104
default as ObserveBoundingClientRect,
115
} from './ObserveBoundingClientRect';

0 commit comments

Comments
 (0)