File "SupportEvents.php"
Full Path: /home/fundopuh/trader.fxex.org/vendor/livewire/livewire/src/Features/SupportEvents.php
File size: 882 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Livewire\Features;
use Livewire\Livewire;
class SupportEvents
{
static function init() { return new static; }
function __construct()
{
Livewire::listen('component.hydrate', function ($component, $request) {
//
});
Livewire::listen('component.dehydrate.initial', function ($component, $response) {
$response->effects['listeners'] = $component->getEventsBeingListenedFor();
});
Livewire::listen('component.dehydrate', function ($component, $response) {
$emits = $component->getEventQueue();
$dispatches = $component->getDispatchQueue();
if ($emits) {
$response->effects['emits'] = $emits;
}
if ($dispatches) {
$response->effects['dispatches'] = $dispatches;
}
});
}
}