You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Honestly this is a cleaner way to code this so we'll be continuing with our change, probably low priority but again might as well let you know. If you need anything else just drop me a reply and I'll get back to you when I can!
Thanks for your time,
Joe
The text was updated successfully, but these errors were encountered:
Bug Report
Hello Typescript team!
I found this bug when changing versions from 5.0.4 to 5.1.3. I have a work around but thought I'd let you know!
🔎 Search Terms
webpack typescript v5.1.3 react
🕗 Version & Regression Information
💻 Code
The following code would not convert the 'html' behind the deconstructed conditional object to javascript (i.e. React.createElement)
🙁 Actual behavior
The code snippet above would convert to:
You can see it leaves the
ChangeDetailsTable
as html🙂 Expected behavior
It should convert to the code below (it did in 5.0.4 but changed in 5.1.3):
Work around
Replacing the use of the deconstructor
...({})
with&&
allowed typescript to pick up the html correctly.Honestly this is a cleaner way to code this so we'll be continuing with our change, probably low priority but again might as well let you know. If you need anything else just drop me a reply and I'll get back to you when I can!
Thanks for your time,
Joe
The text was updated successfully, but these errors were encountered: