Commit 2602f47
Eagerly execute column config blocks instead of forcing render
Change `renders_many :columns` to a lambda slot that executes the
configuration block at creation time. This eliminates the fragile
`header.column.to_s # force rendering` pattern in the template,
which relied on rendering a component purely for side effects.
The Column#call method is also removed since Column is no longer
rendered as a component — it serves as a configuration holder.
Co-Authored-By: Claude Opus 4.6 <[email protected]>1 parent fa9f7a6 commit 2602f47
File tree
3 files changed
+5
-6
lines changed- app/components/primer/open_project
- data_table
3 files changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | 71 | | |
76 | 72 | | |
77 | 73 | | |
| |||
0 commit comments