diff --git a/src/Tags/Livewire.php b/src/Tags/Livewire.php index 3418c07..b8a2906 100644 --- a/src/Tags/Livewire.php +++ b/src/Tags/Livewire.php @@ -86,7 +86,7 @@ public function scriptConfig(): string { return \Livewire\Mechanisms\FrontendAssets\FrontendAssets::scriptConfig(); } - + /** * Antlers implementation of @assets - https://livewire.laravel.com/docs/javascript#loading-assets * @@ -95,9 +95,9 @@ public function scriptConfig(): string public function assets(): void { $html = (string) $this->parse(); - + $key = md5($html); - + if (in_array($key, \Livewire\Features\SupportScriptsAndAssets\SupportScriptsAndAssets::$alreadyRunAssetKeys)) { // Skip it... } else { @@ -105,7 +105,7 @@ public function assets(): void \Livewire\store($this->context['__livewire'])->push('assets', $html, $key); } } - + /** * Antlers implementation of @script - https://livewire.laravel.com/docs/javascript#executing-scripts * @@ -114,9 +114,9 @@ public function assets(): void public function script(): void { $html = trim((string) $this->parse()); - + $key = md5($html); - + \Livewire\store($this->context['__livewire'])->push('scripts', $html, $key); } }