Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

dostogir's avatar

What Should I use Livewire.rescan(); Alternatively

This code this livewire 2.x now i update livewire 3.4 how same thing doing not use Livewire.rescan(); ?


    function loadModule(url) {
        if(url != 'javascript:void(0)') {
            $('#loader').show();
            $.ajax({
                url: url,
                type: 'GET',
                success: function(response) {
                    var newPage = $(response).find('section.home').html();
                    $('section.home').length ? $('section.home').html(newPage) :  window.location.href = url
                    Livewire.rescan();
                },
                complete: function() {
                    $('#loader').hide();
                    rightDropdownScriptLoad();
                }
            });
        }
    }
0 likes
1 reply
wali_razzaq's avatar

I think you don't need livewire.rescan any more in V3 as changes are picked automatically by Livewire

Please or to participate in this conversation.