- Keep files relatively short, ideally less than 200 lines.
- Organize files top-down, highest level functions / structs first.
- Do not use mod.rs, instead use the flat style for modules.
- If you're having weird rsx issues read https://dioxuslabs.com/learn/0.6/guide/rsx/ and https://dioxuslabs.com/learn/0.6/essentials/rsx/#
- When working with Dioxus signals, avoid nested borrows of the same signal (e.g., don't call
write()
on a signal while already holding aread()
reference). Instead, extract needed values into local variables before performing write operations.