Skip to content

Commit 9c85bd8

Browse files
committed
feat(ObserveBoundingClientRect): remove deprecated setInitials property
1 parent 0344602 commit 9c85bd8

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

lib/ObserveBoundingClientRect.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ interface IProps {
1414
* The reference to the node that should be observed
1515
*/
1616
node: React.RefObject<HTMLElement>;
17-
/**
18-
* Called once the node is mounted.
19-
* @deprecated Use `onInit` instead.
20-
*/
21-
setInitials?: (rect: IRect) => void;
2217
/**
2318
* Called once a node is mounted for the first time.
2419
*/
@@ -128,10 +123,6 @@ export default class ObserveBoundingClientRect extends React.PureComponent<
128123
const rect = this.getRectFromNode();
129124

130125
if (rect && !this.state.isInitialized) {
131-
if (this.props.setInitials) {
132-
this.props.setInitials(rect);
133-
}
134-
135126
this.setState({ ...rect, isInitialized: true });
136127
return;
137128
}

0 commit comments

Comments
 (0)