- Require the package via composer
composer require --dev hmazter/clockwork-livewire-data-source
- The service provider is automatically registered
- You are good to go
Render a page containing a Livewire component, and you should see the component listed in the Clockwork UI, in the new Livewire tab. You should also see timing info about the events in the timeline, when and how long each mount/render/etc took.
These are the events that Livewire dispatches and the attributes for each event
mount
- component, params, key, parentrender
- component, view, propertiescall
- root, method, params, context, returnEarlyupdate
- component, path, valuehydrate
- component, memo, contextdehydrate
- component, contextdestroy
- component, contextprofile
- event, id, timings(start, finish) - (only dispatched withapp.debug = true
)
- mount
- render
- dehydrate
- hydrate
- update
- render
- dehydrate
- hydrate
- call
- render
- dehydrate