3

i have a wizard form that is a livewire component and it always rerender when i am typing. I want to stop de rerendering until i submit the form.

Who can help me please ? Sorry for the bad english i'm french.

momo
  • 33
  • 1
  • 4

1 Answers1

8

You should use the wire:model.defer attribute instead of wire:model.

Nick
  • 138,499
  • 22
  • 57
  • 95
Dan Harrin
  • 889
  • 6
  • 17
  • the component doesn't rerender while typing but when i click on the next input field it rerenders – momo Jul 17 '20 at 19:46
  • @momo just updated my answer, Livewire v2 introduced `wire:model.defer` which waits until your form has been submitted. – Dan Harrin Sep 24 '20 at 07:28