Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
vendor
/
livewire
/
livewire
/
js
:
HookManager.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
import MessageBus from './MessageBus' export default { availableHooks: [ /** * Public Hooks */ 'component.initialized', 'element.initialized', 'element.updating', 'element.updated', 'element.removed', 'message.sent', 'message.failed', 'message.received', 'message.processed', /** * Private Hooks */ 'interceptWireModelSetValue', 'interceptWireModelAttachListener', 'beforeReplaceState', 'beforePushState', ], bus: new MessageBus(), register(name, callback) { if (! this.availableHooks.includes(name)) { throw `Livewire: Referencing unknown hook: [${name}]` } this.bus.register(name, callback) }, call(name, ...params) { this.bus.call(name, ...params) }, }