Update dependencies
Composer: Laravel 13.43, Octane 2.25, Fortify 1.43 and Pest 5.3.7, with the packages they bring (70 in all). This fixes the advisories in Laravel and the Symfony components. npm: Vite 8.3.8 with Rolldown 1.2.19, Playwright 1.65.1 and chokidar 6. The asset build, CI and the dev container use Node.js 26. The dev image also has git for Composer. Both audits are clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
# Livewire 4 JavaScript Integration
|
||||
# Livewire 4 JavaScript integration
|
||||
|
||||
## Interceptor System (v4)
|
||||
## Interceptor system (v4)
|
||||
|
||||
### Intercept Messages
|
||||
### Intercept messages
|
||||
|
||||
```js
|
||||
Livewire.interceptMessage(({ component, message, onFinish, onSuccess, onError }) => {
|
||||
@@ -12,7 +12,7 @@ Livewire.interceptMessage(({ component, message, onFinish, onSuccess, onError })
|
||||
});
|
||||
```
|
||||
|
||||
### Intercept Requests
|
||||
### Intercept requests
|
||||
|
||||
```js
|
||||
Livewire.interceptRequest(({ request, onResponse, onSuccess, onError, onFailure }) => {
|
||||
@@ -23,7 +23,7 @@ Livewire.interceptRequest(({ request, onResponse, onSuccess, onError, onFailure
|
||||
});
|
||||
```
|
||||
|
||||
### Component-Scoped Interceptors
|
||||
### Component-scoped interceptors
|
||||
|
||||
```blade
|
||||
<script>
|
||||
@@ -33,7 +33,7 @@ Livewire.interceptRequest(({ request, onResponse, onSuccess, onError, onFailure
|
||||
</script>
|
||||
```
|
||||
|
||||
## Magic Properties
|
||||
## Magic properties
|
||||
|
||||
- `$errors` - Access validation errors from JavaScript
|
||||
- `$intercept` - Component-scoped interceptors
|
||||
- `$errors` gives JavaScript access to validation errors.
|
||||
- `$intercept` registers component-scoped interceptors.
|
||||
|
||||
Reference in New Issue
Block a user