Files
deepdrft/DeepDrftPublic.Client/Controls/AudioPlayerProvider.razor
T

7 lines
465 B
Plaintext

@* IsFixed="true": the StreamingAudioPlayerService instance is created once in OnInitialized
and is never replaced — the reference is stable for the lifetime of the component.
If instance swapping at runtime is ever needed, change IsFixed to false (adds subscription
overhead on every parent re-render, but allows children to see the new reference). *@
<CascadingValue Value="@(_audioPlayerService)" IsFixed="true">
@ChildContent
</CascadingValue>