File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,9 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange
1313
1414### Changed
1515* [ Docs] [ ` no-unknown-property ` ] : fix typo in link ([ #3445 ] [ ] @denkristoffer )
16+ * [ Perf] component detection: improve performance by optimizing getId ([ #3451 ] [ ] @golopot )
1617
18+ [ #3451 ] : https://github.com/jsx-eslint/eslint-plugin-react/pull/3451
1719[ #3448 ] : https://github.com/jsx-eslint/eslint-plugin-react/pull/3448
1820[ #3445 ] : https://github.com/jsx-eslint/eslint-plugin-react/pull/3445
1921[ #3436 ] : https://github.com/jsx-eslint/eslint-plugin-react/issues/3436
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ const isFirstLetterCapitalized = require('./isFirstLetterCapitalized');
2121const isDestructuredFromPragmaImport = require ( './isDestructuredFromPragmaImport' ) ;
2222
2323function getId ( node ) {
24- return node && node . range . join ( ':' ) ;
24+ return node ? ` ${ node . range [ 0 ] } : ${ node . range [ 1 ] } ` : '' ;
2525}
2626
2727function usedPropTypesAreEquivalent ( propA , propB ) {
You can’t perform that action at this time.
0 commit comments