Closed karandatwani92 closed 1 month ago
I have a livewire component, and I need to set a key to the livewire component, but the widget gives no way to set one.
Now I can, with the added key attribute.
key
Widget::make([ 'type' => 'livewire', 'content' => 'livewire-line-chart', 'parameters' => ['lineChartModel' => $lineChartModel], 'livewireAssets' => false, 'wrapperClass' => 'col-md-12', + 'key'=>$lineChartModel->reactiveKey(), ]);
NO
Just remove or pass the key.
WHY
I have a livewire component, and I need to set a key to the livewire component, but the widget gives no way to set one.
AFTER - What is happening after this PR?
Now I can, with the added
key
attribute.Is it a breaking change?
NO
How can we test the before & after?
Just remove or pass the key.