Skip to content

Tweak: always generate a children method on component prop builders #2281

Open
@jkelleyrtp

Description

@jkelleyrtp

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).

Metadata

Metadata

Assignees

Labels

breakingThis is a breaking changersxRelated to rsx or the dioxus-rsx crate

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions