Commit 26a517c
fix(cockpit-render): no [object Object] flash for unresolved value bindings mid-stream (#773)
demo-value / demo-label rendered their value input directly ({{ value() }}).
During streaming, a partial $computed binding resolves to an object, so the
row briefly showed 'LABEL: [object Object]' between the skeleton and the final
value. Route the value through toDisplayText() via a displayValue computed and
guard the row on it, so an unresolved object renders nothing (not [object Object])
until it resolves.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 4fbca04 commit 26a517c
2 files changed
Lines changed: 8 additions & 4 deletions
File tree
- cockpit/render
- computed-functions/angular/src/app
- state-management/angular/src/app
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| |||
0 commit comments