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
ArgsTable: Fix union type splitting #11868
Conversation
@shilman Can we merge this fix? |
const cannotBeSafelySplitted = /[(){}[\]<>]/.test(summaryAsString); | ||
|
||
if (cannotBeSafelySplitted) { | ||
return <ArgText text={summaryAsString} simple={summaryAsString.includes('|')} />; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain simple
to me? Don't understand why we need it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I have a vacation. Simple is turning on and off styling of values (border, background...). And I used it because when you have non splitted values it looked strange with styling.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix!
Issue: #11840
What I did
This is more like hotfix, I disabled splitting for complex union types containing
()
,{}
,[]
,<>
. I'll need more time to find out how to properly split those complex union types.How to test