FilamentF
Filament3y ago
5 replies
TiBiBa

Alternative for emit() in v3?

Hi! When updating from v2 to v3 a custom page broke due to an emit does not exist. error. The page implements HasForms and worked fine in v2. The event was caught in the blade template like this:

Livewire.on('dataUpdated', () => {
    console.log('hello!');
    initializeTree();
})


Do anyone have a suggestion how to handle the same functionaliy in v3? Thanks in advance!
Solution
livewire documentation says "emit() has been renamed to dispatch()"
Was this page helpful?