DioxusLabs / DioxusLabs/dioxus

Tweak: always generate a `children` method on component prop builders

Open
#2,281 1 comment 2 reactions 1 assignee Claimed by @DogeDark View on GitHub
breaking rsx
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

## Feature Request

Right now we can't hotreload component bodies going from something to nothing or nothing to something since that's functionally adding/removing a .children() method.

In debug or dev mode we should always pass in children as either some or none into the builder, even if the component doesn't do anything with those children. This would let us hotreload component bodies in more cases than we do today.

This would be breaking (might be able to find a way around it).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.