-
Notifications
You must be signed in to change notification settings - Fork 58
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
CPLAT-11722 Add uiForwardRef #612
CPLAT-11722 Add uiForwardRef #612
Conversation
…ct into CPLAT-11722-add-uiForwardRef
Security InsightsNo security relevant content was detected by automated scans. Action Items
Questions or Comments? Reach out on Slack: #support-infosec. |
@@ -707,7 +707,7 @@ main() { | |||
(props) { | |||
return Dom.div()(); | |||
}, | |||
$BarPropsMixinConfig, // ignore: undefined_identifier |
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.
This seems like it should have been $BarConfig
from the get go - my parser change use the name to detect that it's a generated config and therefore enforces the naming pattern ${FactoryName}Config
. Let me know if this doesn't work, though!
@@ -1665,7 +1665,7 @@ main() { | |||
(props) { | |||
return Dom.div()(); | |||
}, | |||
\$FooConfig, // ignore: undefined_identifier |
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.
This seems like it should have been $BarConfig
from the get go - my parser change use the name to detect that it's a generated config and therefore enforces the naming pattern ${FactoryName}Config
. Let me know if this doesn't work, though!
b8f4969
to
7d288eb
Compare
@@ -253,16 +253,6 @@ extension on SourceSpan { | |||
SourceRange asRangeOrEmpty() => this == null ? SourceRange.EMPTY : asRange(); | |||
} | |||
|
|||
extension<E> on Iterable<E> { | |||
void forEachIndexed(void Function(E, int) callback) { |
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.
The new analyzer version made improvements to the analysis of extensions and caught this was unused
talked to Joe about some puzzling things I found while QAing and he's going to take a look - |
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.
Just formatting and one minor thing
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.
+1
QA +1 tested functionality in
|
QA +1 still stands - latest commit is a wording change only |
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.
+1
@Workiva/release-management-pp
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.
+1 from RM
Motivation
When planning function components, we missed a couple cases:
Example: https://reactjs.org/docs/forwarding-refs.html#forwarding-refs-to-dom-components
Changes
API Changes:
uiForwardRef
uiForwardRef
uiForwardRef
testsBuilder Changes:
FunctionComponentConfig
toUiFactoryConfig
isFunctionComponentFactory
toshouldGenerateConfig
Identifier
that can be used to check if the name is a factory typeUiFactoryConfig
Release Notes
Review
See CONTRIBUTING.md for more details on review types (+1 / QA +1 / +10) and code review process.
Please review:
QA Checklist
Merge Checklist
While we perform many automated checks before auto-merging, some manual checks are needed: