From c99595b8c9c720a05bfabe42ec652714dae5ce03 Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Sun, 21 Jan 2024 23:19:39 +0100 Subject: [PATCH] update docs --- docs/integrations/laravel-livewire.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/integrations/laravel-livewire.md b/docs/integrations/laravel-livewire.md index be43034..8a0b8cc 100644 --- a/docs/integrations/laravel-livewire.md +++ b/docs/integrations/laravel-livewire.md @@ -47,6 +47,8 @@ This opens up a whole new dimension to fully portable Blade components! But use You may use Bundle in conjunction with Livewire's `@assets` directive. This serves a similar purpose as using stacks in plain Laravel, but evaluates scripts even when it was appended on the page after the initial load. +When your import is not wrapped in a `@assets` directive it will not be evaluated in case it lives inside a conditional piece of template that is not rendered on the first page load. Because of this it is recommended to always use Bundle together with `@assets` when using Livewire. + Refer to the [Livewire docs](https://livewire.laravel.com/docs/javascript#loading-assets){:target="\_blank"} for more information on why you'd might need this. ```html