Commit 97d6678
fix: remove useMemo after early returns to fix React error #310
The useMemo hook was placed after conditional early returns in
RecordDetailView, violating React's Rules of Hooks and causing
"Rendered fewer hooks than expected" (React error #310). Replaced
with an IIFE to keep the same Set-based dedup logic without hooks.
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>1 parent f417212 commit 97d6678
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
390 | | - | |
| 390 | + | |
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
| |||
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
399 | | - | |
| 399 | + | |
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
| |||
0 commit comments