AlpineJS doesn't update when using dynamically loaded model with Livewire #2326
Unanswered
natecorkish
asked this question in
1. Help
Replies: 1 comment 2 replies
-
|
https://laravel-livewire.com/docs/2.x/alpine-js look for entangle |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am loading a model via events in Livewire, but when I populate the model, X-data doesn't update...
For example:
edit.php
Now in my edit.blade, when I emit an event from another component to populate the model above like so:
my x-data updates, but it doesn't re-render,
edit.blade.php
The span stays empty (because on the initial Livewire render, the model doesn't exist), but the html (inspect element) shows the name, how can I get x-data to update?
Beta Was this translation helpful? Give feedback.
All reactions