mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 21:34:03 +00:00
14 lines
488 B
Markdown
14 lines
488 B
Markdown
---
|
|
title: 'Custom response effects'
|
|
tweet_id: ''
|
|
thread_slug: obscure-livewire-tips
|
|
author_username: samuelstancl
|
|
images:
|
|
- 'https://cln.sh/YjzF2w/download'
|
|
created_at: 2021-04-09T17:22:56+02:00
|
|
slug: custom-response-effects
|
|
---
|
|
|
|
You can add custom data to response effects. Those are separate from component data, and act more like events.
|
|
|
|
You can use them when you have some JS code that looks at Livewire responses, and when you want more control than dispatching browser events
|