DioxusLabs / DioxusLabs/dioxus
Throw a warning if a component's props are marked as mutable
Open
enhancement
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
## Feature Request
We should throw a warning - or just outright reject - component properties marked as mutable. In Dioxus 0.4 and below, props were naturally immutable thanks to the immutable reference.
Allowing props to be mutable means users are free to implement data binding in their UI which we want to discourage. Our docs advise that you use callbacks instead of mutable signal binding on prop boundaries, and the framework should also give you a warning.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.