Skip to content

Commit 19767c2

Browse files
committed
fix(ViewportCollector): ensure initial values are not empty
1 parent 9b4c310 commit 19767c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/ViewportCollector.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ export default class ViewportCollector extends React.PureComponent<IProps> {
184184
warnNoResizeObserver();
185185
}
186186

187+
this.handleScroll();
188+
this.handleResize();
187189
this.tickId = raf(this.tick);
188190
}
189191

0 commit comments

Comments
 (0)