-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
strange fix for jsx-no-leaked-render #3297
Comments
Every time I run
|
In general For example I have a component that displays input containerName.length > 0
? `Loading ${containerName.toLocaleLowerCase()}`
: "Loading" output !!containerName.length > 0 &&
`Loading ${containerName.toLocaleLowerCase()}` This is a small example. It will also remove entire component trees. |
The exclamation marks show up on strings and nested values.
|
lol this is clearly a bug. cc @Belco90 |
let me know if you have trouble reproducing. to be clear there are two bugs here. the unnecessary exclamation marks and the deletion of branches from ternary expressions |
No idea what's causing the former! But the latter it's easy to fix. I'm on it. |
@Belco90 thanks! i'd love to publish a patch release soon, and i'd love to include fixes for the latest no-leaked-render issues :-) |
Sorry, I forgot to mention: I can create a PR with those fixes while I figure out the last one. |
Input File
output file
eslint rule setup
The text was updated successfully, but these errors were encountered: