Commit 3fe1f9f
committed
fix(demo/web): memoize metadata track name to avoid re-subscribing per catalog frame
The watch inspector read the advertised metadata track name straight off the
catalog signal, so the subscription effect tore down and recreated the
`meta.json` subscription on every catalog update (e.g. a live encoder-setting
tweak), briefly flickering the metadata panel. Derive the track name through a
memoized computed so the subscription only re-runs when the name or the active
broadcast actually changes.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BQ9o9paZnRLpYRgbyjUwFV1 parent c7410f3 commit 3fe1f9f
1 file changed
Lines changed: 12 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
384 | | - | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
385 | 388 | | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
| 389 | + | |
392 | 390 | | |
393 | | - | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
394 | 398 | | |
395 | 399 | | |
396 | 400 | | |
| |||
0 commit comments