You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+36
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,42 @@ If you encounter any issues with nightly builds, please report them in our [issu
75
75
## Development & Building
76
76
You'll need to download the package manager used with this repo. You can install it by visiting [Bun.sh](https://bun.sh/) and following the installation instructions.
77
77
78
+
### Debugging
79
+
80
+
#### Debugging with React Scan
81
+
Meshtastic Web Client has included the library [React Scan](https://github.com/aidenybai/react-scan) to help you identify and resolve render performance issues during development.
82
+
83
+
React's comparison-by-reference approach to props makes it easy to inadvertently cause unnecessary re-renders, especially with:
84
+
85
+
- Inline function callbacks (`onClick={() => handleClick()}`)
86
+
- Object literals (`style={{ color: "purple" }}`)
87
+
- Array literals (`items={[1, 2, 3]}`)
88
+
89
+
These are recreated on every render, causing child components to re-render even when nothing has actually changed.
0 commit comments