Hello. In all of my livewire components, I always need to double-click a button for the action to result in the html code. Ex. If I am going to delete a record I have to double-click the delete button so that the record disappears from the screen, on the first click the record disappears from the database and on the second it no longer exists on the screen.
“livewire/livewire”: “^v2.4.0”
Can you help me? Where am I going wrong?
I realized on the console that on the first click I have the following:
Response:
{“effects”:{“html”:null,“dirty”:[]},“serverMemo”:{“checksum”:“de89240692531533dcf262b442371e1358480aa31c76e43274ba674f5a5945ae”}}
Preview:
- serverMemo: {checksum: “de89240692531533dcf262b442371e1358480aa31c76e43274ba674f5a5945ae”}
- checksum: “de89240692531533dcf262b442371e1358480aa31c76e43274ba674f5a5945ae”
In the second click I have an htmlHash that I believe is where the magic happens:
Response:
{“effects”:{“html”:"<div wire:id=“Ocj3b9pAj2gbIqLVMWP0”>\n <div class=“row”>\n <div class=“col-sm-7 col-lg-7”>\n …
Preview:
serverMemo: {htmlHash: “f52145d5”, checksum: “c8de6bff9b838672d65c326ba71f24781ae21d922990422f99456a72795ee908”}