Skip to content
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

Cleanup new_with_children() uses #194

Merged
merged 3 commits into from
Jun 26, 2022
Merged

Conversation

Weibye
Copy link
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
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 <alice.i.cecile@gmail.com>
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