We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0344602 commit 9c85bd8Copy full SHA for 9c85bd8
lib/ObserveBoundingClientRect.tsx
@@ -14,11 +14,6 @@ interface IProps {
14
* The reference to the node that should be observed
15
*/
16
node: React.RefObject<HTMLElement>;
17
- /**
18
- * Called once the node is mounted.
19
- * @deprecated Use `onInit` instead.
20
- */
21
- setInitials?: (rect: IRect) => void;
22
/**
23
* Called once a node is mounted for the first time.
24
@@ -128,10 +123,6 @@ export default class ObserveBoundingClientRect extends React.PureComponent<
128
123
const rect = this.getRectFromNode();
129
124
130
125
if (rect && !this.state.isInitialized) {
131
- if (this.props.setInitials) {
132
- this.props.setInitials(rect);
133
- }
134
-
135
126
this.setState({ ...rect, isInitialized: true });
136
127
return;
137
}
0 commit comments