-
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-4674: Add workaround for ddc bug via props/state impl constructor #256
Conversation
Security InsightsNo security relevant content was detected by automated scans. Action Items
Questions or Comments? Reach out on Slack: #support-infosec. |
…round_unknown_ddc_bug
..writeln(' // This initializer of `_props` to an empty map, as well as the reassignment') | ||
..writeln(' // of `_props` in the constructor body is necessary to work around an unknown ddc issue.') | ||
..writeln(' // See <https://jira.atl.workiva.net/browse/CPLAT-4673> for more details') | ||
..writeln(' $implName(Map backingMap) : this._props = {} {') |
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 thought of one thing; have you tried initializing to null
instead?
Would be nice to avoid this object creation if it's easy to; no big deal if it's a pain to try out, though.
..writeln(' $implName(Map backingMap) : this._props = {} {') | |
..writeln(' $implName(Map backingMap) : this._props = null {') |
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.
Unfortunately this doesn't work in ddc.
main() { | ||
test('sets private props correctly in `getDefaultProps`', () { | ||
var instance = render((Foo() | ||
..stringProp = 'some string value' |
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.
#nit this prop is unused
QA +1
|
@Workiva/release-management-p for merge into master |
Ultimate problem:
There's an unknown ddc bug that affects private props/state members and classes. What we know so far: https://jira.atl.workiva.net/browse/CPLAT-4673
How it was fixed:
See https://jira.atl.workiva.net/browse/CPLAT-4673
Testing suggestions:
Potential areas of regression:
Pretty much everything.