LoginSignup
0
1

Livewire3にアップグレードしてupdatedが動かない時の対処法

Last updated at Posted at 2023-11-07

Livewire2→Livewire3でupdatedが動かない

↓もしかしたら誰か同じ問題にぶつかってないかなーと、質問投げてみた。
やっぱりLivewireって使ってる人少ないのかな。

これもけっきょくドキュメントに書いてたね。
Lifecycle Hooksばかり見てたけど、Formの方に書いてあった。

Livewire2で以下のように書いてたのを

<input type="text" wire:model="name">

以下のように.liveをつけてあげるだけ。

<input type="text" wire:model.live="name">

これで無事動くようになった!

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1