Skip to content

Latest commit

 

History

History
7 lines (7 loc) · 595 Bytes

CONVENTIONS.md

File metadata and controls

7 lines (7 loc) · 595 Bytes
  • 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 a read() reference). Instead, extract needed values into local variables before performing write operations.