jlzandrad's avatar

wire:navigate does not reaload scripts

I'm having a hard time working with wire:navigate, I have a js on the footer of my pages that when I use wire:navigate I loose all its functionalities

this is the script

@include('inc.head')

        {{$slot}}

        @include('inc.footer')
        @include('inc.notifications')
    </div>
</div>

<script src="js/app_footer.js"></script>

and on the links I have the wire:navigate

0 likes
3 replies
Snapey's avatar

but you use wire navigate to specifically AVOID a full page reload ?

jlzandrad's avatar

@Snapey In this case in specific I can do without it, but in some pages I have a sub menu for child pages, for example in the customers page I have another menu just for that page to show address, cards and so on and would be nice to use wire:navigate in this cases but since it removes that js/app_footer.js it makes the menus on the side bar not working and even loose some styling.

Snapey's avatar

@jlzandrad then you have to either tell Livewire to wire:ignore those sections or find a way to reset them

Please or to participate in this conversation.