No. You don't have to include @livewireStyles and @livewireScripts in Livewire 3

By: Roel
July 21, 2024

No. You don't have to include @livewireStyles and   @livewireScripts in Livewire 3

Livewire 2:

<head>
  @livewireStyles
</head>

<body>
   {{ $slot }}

 @livewireScripts
</body>

Livewire 3:

<head>

</head>

<body>
   {{ $slot }}


</body>

For some reason, I had an encounter where removing the @livewireStyles and @livewireScripts cause unexplainable error. For example using 

<div wire:loading wire:target="photo">Uploading...</div>

This will show "Uploading ... " even though photo property is not being updated. So just include @livewireStyles and @livewireScripts in your layouts files. Doesn't take much.

Tags:

About the Author

Roel
Roel

Hi, my name is Roel. I am a TALL stack developer. I created this site to document all web applications I created using the TALL stack. I exclusively built products using Laravel because I like the experience writing applications using the simplest framework/stack available.



Please login to comment.

© 2024 Talldevelopers.com, All rights reserved.