Commit ba2f6f1
committed
refactor(tables): tidy lazy ref init and align perf-rule cross-reference
- use-workspace-imports: lazy-init the status Map at its point of use in
the effect ((ref.current ??= new Map())) instead of mutating the ref
during render with a separate in-effect fallback. The ref is only read
in the effect, so this removes the render-phase write and the dead
'?? new Map()' branch while keeping the identical persistent Map.
- CLAUDE.md: fix the render-performance pointer so it matches the rule
doc — toSorted/toReversed are unsafe on client render paths (SWC does
not polyfill prototype methods), not merely an ES2022/ES2023 lib note.1 parent dc4510c commit ba2f6f1
2 files changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | 55 | | |
57 | 56 | | |
58 | | - | |
| 57 | + | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
| |||
0 commit comments