@include('media::components.partials.media-library-once') {{-- If we are in Livewire context, we are going emit an event so the initial state of the collection component is emitted to the Livewire component where the collection is used in. --}} @php if (isset($_instance)) { if (in_array(\Modules\Media\Http\Livewire\Concerns\WithMedia::class, class_uses_recursive($_instance))) { if ($_instance->$name === null) { $_instance->onMediaChanged($name, $media); } } } @endphp