From 28b2bb908cfddcb553dd3b071600d4ae2a9b2fc1 Mon Sep 17 00:00:00 2001 From: Michael Hahn Date: Tue, 5 Nov 2024 12:08:58 -0800 Subject: [PATCH 1/2] Remove defaultProps --- src/withTrackingComponentDecorator.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/withTrackingComponentDecorator.js b/src/withTrackingComponentDecorator.js index c932b35..97a5e2d 100644 --- a/src/withTrackingComponentDecorator.js +++ b/src/withTrackingComponentDecorator.js @@ -73,7 +73,6 @@ export default function withTrackingComponentDecorator( PropTypes.shape({ current: PropTypes.any }), ]), }; - WithTracking.defaultProps = { rtFwdRef: undefined }; hoistNonReactStatics(WithTracking, DecoratedComponent); return WithTracking; From bf9aae1ac1235e67bc1c2fc980400b9cb3f5c662 Mon Sep 17 00:00:00 2001 From: Michael Hahn Date: Tue, 5 Nov 2024 12:16:41 -0800 Subject: [PATCH 2/2] Disable lint rule --- .eslintrc.js | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc.js b/.eslintrc.js index 968e82a..b219154 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -16,5 +16,6 @@ module.exports = { extensions: ['.js', '.jsx'], }, ], + 'react/require-default-props': 'off', }, };