Description
Im trying to achieve a fresh refresh of one of my blade files without having to refresh the component. I have tried setting up listeners and executing the $refresh directive but it doesn't completely refresh my component.
The reason i that i have a <script src=""/> tag that i want to be re-executed.
Relevant code
<script>
document.addEventListener('livewire:init', () => {
Livewire.on('enable-script', (event) => {
// TODO Rerender self to enable script again.
});
});
...
...