Skip to content

Commit

Permalink
fix: remove static props from InView to fix tree shaking
Browse files Browse the repository at this point in the history
  • Loading branch information
thebuilder committed Apr 21, 2022
1 parent 09ad7ef commit 59b8480
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/InView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 59b8480

Please sign in to comment.