Skip to content

Commit c289176

Browse files
authoredApr 12, 2023
Fix performance for keys
Closes GH-703. Closes GH-738. Reviewed-by: Christian Murphy <christian.murphy.42@gmail.com> Reviewed-by: Merlijn Vos <merlijn@soverin.net> Reviewed-by: Remco Haszing <remcohaszing@gmail.com>
1 parent 184a1a3 commit c289176

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed
 

‎lib/ast-to-react.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -221,12 +221,7 @@ function toReact(context, node, index, parent) {
221221
)
222222
}
223223

224-
properties.key = [
225-
name,
226-
position.start.line,
227-
position.start.column,
228-
index
229-
].join('-')
224+
properties.key = index
230225

231226
if (name === 'a' && options.linkTarget) {
232227
properties.target =

0 commit comments

Comments
 (0)
Please sign in to comment.