| Path : /var/www/html/phkaymedia/vendor/livewire/livewire/src/Features/ |
|
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
| Current File : //var/www/html/phkaymedia/vendor/livewire/livewire/src/Features/SupportEvents.php |
<?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;
}
});
}
}