What seems to be the problem:
I have build a small Q&A / Livestream Livewire Component where i embed a vimeo livestream and a regular polling checks for new questions. Although i use wire:ignore on the iframe the first polling tick still reloads the iframe and you have to press play on the vimeo video again. What is strange is that it only happens on the first poll. After that the iframe keeps going without being reloaded.
Steps to Reproduce:
- Create a new livewire component with a polling function that causes any dom change, in my case i just pull a random question from my database and display the question. As soon as the new question is being polled the iframe also reloads
this is the view:
this is the component:
<?php
namespace App\Http\Livewire;
use App\LivestreamQuestion;
use Livewire\Component;
class IFrameTest extends Component
{
public $question;
public function mount()
{
}
/**
* Get the view / contents that represent the component.
*
* @return \Illuminate\View\View|string
*/
public function render()
{
return view('livewire.i-frame-test')
->layout('component.layout');
}
public function pollQuestions()
{
$this->question = LivestreamQuestion::inRandomOrder()->first();
}
}
Are you using the latest version of Livewire: Yes
(Sorry this is the first the i post here and for some reason i couldnt insert the view code, i might be to stupid to use this post editor )