-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Component as props objectOf support. #2207
Conversation
# Conflicts: # tests/integration/renderer/test_component_as_prop.py
Object.keys(childObj).forEach(key => { | ||
const value = childObj[key]; | ||
crawlLayout( | ||
value, | ||
func, | ||
concat(currentPath, childPath.concat([key])) | ||
); | ||
}); |
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.
Not a big deal, just a little cleaner. Same at line 143
Object.keys(childObj).forEach(key => { | |
const value = childObj[key]; | |
crawlLayout( | |
value, | |
func, | |
concat(currentPath, childPath.concat([key])) | |
); | |
}); | |
for (const key in childObj) { | |
const value = childObj[key]; | |
crawlLayout( | |
value, | |
func, | |
concat(currentPath, childPath.concat([key])) | |
); | |
} |
dynamic_dict={"node": {"dict-dyn": Div("dict-dyn", id="inside-dict")}}, | ||
dynamic_list=[ | ||
{"list": Div("dynamic-list", id="inside-list")}, | ||
], | ||
dynamic_nested_list=[ | ||
{"obj": {"nested": Div("nested", id="nested-dyn")}} | ||
], |
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.
Pretty low risk, but if you wanted to cover all bases these props should get two keys & two list items to ensure we're properly looping over everything.
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 had a few minor comments, looks great!
Resolve #2129