From 59b8480dbf096703129023a307a88662eb3a302a Mon Sep 17 00:00:00 2001 From: Daniel Schmidt Date: Thu, 21 Apr 2022 13:58:59 +0200 Subject: [PATCH] fix: remove static props from InView to fix tree shaking --- src/InView.tsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/InView.tsx b/src/InView.tsx index 8880e3ce..9b58d7e8 100644 --- a/src/InView.tsx +++ b/src/InView.tsx @@ -66,13 +66,6 @@ export class InView extends React.Component< IntersectionObserverProps | PlainChildrenProps, State > { - static displayName = 'InView'; - static defaultProps = { - threshold: 0, - triggerOnce: false, - initialInView: false, - }; - constructor(props: IntersectionObserverProps | PlainChildrenProps) { super(props); this.state = {