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:
Do anyone have a suggestion how to handle the same functionaliy in v3? Thanks in advance!3 Replies
Check the livewire upgrade guide. Emit is not a filament method.
Thanks! I think it almost works. However, I can't figure out how to use the alpine way of listening to the event. Currently the following script is used:
But according to the upgrade guide I should use something like this:
On what element or part of the code? I'm a bit lost here.
Solution
livewire documentation says "emit() has been renamed to dispatch()"