Skip to content

Commit

Permalink
more details
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria committed Aug 6, 2023
1 parent 4cfb1c6 commit 3941dcd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/livewire.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,12 @@ Do note that by default, the dehydration uses the `toArray()` method. As a resul
For this reason Livewire proposes the interface `Wireable` which requires two methods: `toLivewire()` and `static fromLivewire($value)`.
The former will return the serialized version of the object and the latter will rebuild the object from the serialized version.

Another option is to use Synthesizers. Examples which take care of AbstractAlbums and Photos are in `App/Livewire/Synth`;
Another option is to use Synthesizers. Examples which take care of AbstractAlbums and Photos are in `App/Livewire/Synth`;

## Front-end reactivity

While Livewire provides decent interaction, sometimes we do not need round trips to the server to change the displayed data.
For this reason we use [Alpine.js](https://alpinejs.dev/start-here) which is bundled with Livewire.

Alpine provies convenient tools to improve reactivity such as `x-on`, `x-bind`, `x-data`, `x-show`, `x-init`, `x-cloak`.
We advise the reader to familiarize themselves with those as they are also used in the frontend.

0 comments on commit 3941dcd

Please sign in to comment.