-
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-9691 Improve HOC Errors #469
Conversation
Security InsightsNo security relevant content was detected by automated scans. Action Items
Questions or Comments? Reach out on Slack: #support-infosec. |
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 one question
// original Dart component via the 'WrappedComponent` property. | ||
if (instance.type != null && getProperty(instance.type, 'WrappedComponent') != null) { | ||
instanceType = getProperty(instance.type, 'WrappedComponent'); | ||
} |
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.
Hm, I just took this out; was this a bad merge conflict, or was this added back in intentionally?
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.
Nope, I definitely didn't mean to add that back in. Sorry about that!
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.
+10
@Workiva/release-management-p |
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
Currently, wrapping a
UiComponent
in one of our HOC utilities (forwardRef
,connect
,connectFlux
) will throw a cryptic error, and there's no mention of that on the utility doc comments.Changes
connect
,connectFlux
, andforwardRef
noting that the component being wrapped should extendComponent2
.Component
is passed inRelease Notes
connect
,connectFlux
, andforwardRef
fail gracefully when an invalid component gets passed in.Review
See CONTRIBUTING.md for more details on review types (+1 / QA +1 / +10) and code review process.
Please review:
@aaronlademann-wf @greglittlefield-wf @sydneyjodon-wk @willdrach-wk
QA Checklist
Merge Checklist
While we perform many automated checks before auto-merging, some manual checks are needed: