Skip to content

refactor(transformer/jsx): do not take None when extracting key prop#9228

Merged
graphite-app[bot] merged 1 commit intomainfrom
02-19-refactor_transformer_jsx_do_not_take_none_when_extracting_key_prop
Feb 19, 2025
Merged

refactor(transformer/jsx): do not take None when extracting key prop#9228
graphite-app[bot] merged 1 commit intomainfrom
02-19-refactor_transformer_jsx_do_not_take_none_when_extracting_key_prop

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Feb 19, 2025

Tiny refactor to JSX transform. There's no point setting key_prop = None, so skip this branch unless the key attribute has a value (it always should).

We can also remove the .take() call.

Copy link
Member Author

overlookmotel commented Feb 19, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions bot added the A-transformer Area - Transformer / Transpiler label Feb 19, 2025
@github-actions github-actions bot added the C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior label Feb 19, 2025
@overlookmotel overlookmotel marked this pull request as ready for review February 19, 2025 12:16
@codspeed-hq
Copy link

codspeed-hq bot commented Feb 19, 2025

CodSpeed Performance Report

Merging #9228 will not alter performance

Comparing 02-19-refactor_transformer_jsx_do_not_take_none_when_extracting_key_prop (7c10ae5) with main (90ba283)

Summary

✅ 33 untouched benchmarks

@overlookmotel overlookmotel force-pushed the 02-19-refactor_transformer_jsx_do_not_take_none_when_extracting_key_prop branch from bf88ea7 to 532498e Compare February 19, 2025 12:27
@overlookmotel
Copy link
Member Author

semantic[RadixUIAdoptionSection.jsx] 72.2 µs 74.4 µs -3.08%

Oh man! Not this nonsense again... this benchmark result is clearly erroneous noise. This PR doesn't touch Semantic!

@Dunqing Dunqing added the 0-merge Merge with Graphite Merge Queue label Feb 19, 2025
Copy link
Member

Dunqing commented Feb 19, 2025

Merge activity

  • Feb 19, 9:45 AM EST: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Feb 19, 9:45 AM EST: A user added this pull request to the Graphite merge queue.
  • Feb 19, 9:56 AM EST: A user merged this pull request with the Graphite merge queue.

…rop (#9228)

Tiny refactor to JSX transform. There's no point setting `key_prop = None`, so skip this branch unless the `key` attribute has a value (it always should).

We can also remove the `.take()` call.
@graphite-app graphite-app bot force-pushed the 02-19-refactor_transformer_jsx_refactor_and_document_has_proto_ branch from 7a4b939 to 45e0876 Compare February 19, 2025 14:46
@graphite-app graphite-app bot force-pushed the 02-19-refactor_transformer_jsx_do_not_take_none_when_extracting_key_prop branch from 532498e to 7c10ae5 Compare February 19, 2025 14:47
Base automatically changed from 02-19-refactor_transformer_jsx_refactor_and_document_has_proto_ to main February 19, 2025 14:53
@graphite-app graphite-app bot merged commit 7c10ae5 into main Feb 19, 2025
26 checks passed
@graphite-app graphite-app bot deleted the 02-19-refactor_transformer_jsx_do_not_take_none_when_extracting_key_prop branch February 19, 2025 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0-merge Merge with Graphite Merge Queue A-transformer Area - Transformer / Transpiler C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants