Commit fbbde80
[DRAFT] Remove getDynamicLayout/templateFor from curly component manager
The curly component manager no longer needs getDynamicLayout or
templateFor. The resolver already provides templates for named
components via getComponentTemplate() in lookupComponentPair().
For root components rendered via runAppend(), the template is now
resolved eagerly in RootComponentDefinition's constructor via
getComponentTemplate(), so the VM gets compilable directly without
needing the dynamicLayout fallback.
Changes:
- curly.ts: Remove getDynamicLayout, templateFor, WithDynamicLayout,
and set dynamicLayout: false in CURLY_CAPABILITIES
- root.ts: Eagerly resolve template in RootComponentDefinition constructor
via getComponentTemplate(). Keep dynamicLayout: true only for the edge
case of template-less components (getDynamicLayout returns null, VM
uses default template)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent c1cc192 commit fbbde80
2 files changed
Lines changed: 21 additions & 35 deletions
Lines changed: 3 additions & 33 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 1 | + | |
7 | 2 | | |
8 | 3 | | |
9 | 4 | | |
| |||
13 | 8 | | |
14 | 9 | | |
15 | 10 | | |
16 | | - | |
17 | 11 | | |
18 | 12 | | |
19 | 13 | | |
20 | 14 | | |
21 | 15 | | |
22 | 16 | | |
23 | 17 | | |
24 | | - | |
25 | 18 | | |
26 | 19 | | |
27 | 20 | | |
28 | 21 | | |
29 | 22 | | |
30 | 23 | | |
31 | | - | |
32 | 24 | | |
33 | 25 | | |
34 | 26 | | |
| |||
40 | 32 | | |
41 | 33 | | |
42 | 34 | | |
43 | | - | |
44 | | - | |
45 | 35 | | |
46 | 36 | | |
47 | 37 | | |
| |||
125 | 115 | | |
126 | 116 | | |
127 | 117 | | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
| 118 | + | |
132 | 119 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | 120 | | |
151 | 121 | | |
152 | 122 | | |
| |||
523 | 493 | | |
524 | 494 | | |
525 | 495 | | |
526 | | - | |
| 496 | + | |
527 | 497 | | |
528 | 498 | | |
529 | 499 | | |
| |||
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | | - | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
32 | 41 | | |
33 | 42 | | |
34 | 43 | | |
| |||
102 | 111 | | |
103 | 112 | | |
104 | 113 | | |
105 | | - | |
| 114 | + | |
106 | 115 | | |
107 | 116 | | |
108 | 117 | | |
109 | 118 | | |
110 | 119 | | |
111 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
112 | 128 | | |
113 | 129 | | |
0 commit comments