Skip to content

Cleanup new_with_children() uses#194

Merged
alice-i-cecile merged 3 commits intoDioxusLabs:mainfrom
Weibye:fix-no-child
Jun 26, 2022
Merged

Cleanup new_with_children() uses#194
alice-i-cecile merged 3 commits intoDioxusLabs:mainfrom
Weibye:fix-no-child

Conversation

@Weibye
Copy link
Copy Markdown
Collaborator

@Weibye Weibye commented Jun 26, 2022

Objective

Fixes #189

Context & Feedback

I haven't made any changes to the generated code nor it's generation-script, so it will keep producing leaf-nodes using new_with_children() but I reckon that is acceptable.

@alice-i-cecile alice-i-cecile added the code quality Make the code cleaner or prettier. label Jun 26, 2022
Copy link
Copy Markdown
Collaborator

@alice-i-cecile alice-i-cecile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dramatically nicer!

And yeah, we can leave the generation script for now.

@alice-i-cecile alice-i-cecile enabled auto-merge (squash) June 26, 2022 20:05
@alice-i-cecile alice-i-cecile merged commit 83a815b into DioxusLabs:main Jun 26, 2022
jkelleyrtp pushed a commit that referenced this pull request Oct 10, 2022
* Cleanup `new_with_children()` uses

* Format

* Update scripts/gentest/src/main.rs

Co-authored-by: Alice Cecile <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code quality Make the code cleaner or prettier.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace old uses of new_with_children with new_leaf

2 participants