Commit c92b274
committed
fix hydration and validation errors in theater app
- Fix hydration error on initial load by delaying rendering
until the component is mounted on the client.
This handles scenario initialization from URL query parameters
correctly without server/client mismatch.
- Fix Zod validation error (`Array must contain at least 1
element(s)`) by ensuring `A2UIViewer` is only rendered when the
aggregated components list is not empty.1 parent d50db0a commit c92b274
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
64 | 69 | | |
65 | 70 | | |
66 | 71 | | |
| |||
134 | 139 | | |
135 | 140 | | |
136 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
137 | 146 | | |
138 | 147 | | |
139 | 148 | | |
| |||
381 | 390 | | |
382 | 391 | | |
383 | 392 | | |
384 | | - | |
| 393 | + | |
385 | 394 | | |
386 | 395 | | |
387 | 396 | | |
| |||
0 commit comments