Closed nezaboravi closed 4 years ago
Here is what i see in dev tools after sorting, or filtering.
@calebporzio help please?
Got this button works importing livewire-vue , but on every change now (filter, pagination, search, clear search), buttons, my vue components, not reacting, it works only when first time load page, then every component reacts. click go to next page, or filter by 20 records, or search by keywords, it not work anymore.
@nuernbergerA thanks for the tip. I am using it. I use wire:key . updated description with a code. I have tried to use it on table row where the vue component are, i tried to use it on parent span/div on vue component, and even on component it self, and nothing helped
Closing this.
Vue support is isolated to the following repo: https://github.com/livewire/vue
Please re-submit any issues there.
Thanks!
Description
Vue component in foreach loop disappears on search or pagination
Steps to reproduce
I have a table, with rendering rows in foreach loop:
i tried to add wire:ignore everywhere. One place, parent, parent, all of places, and nothing helped.
Here is image: Initial loading. Shows some products with approval button as expected. Intially selected 'APPROVED' products
Changing filter to another type and button is gone:
Back to first filter and button is not there:
Tried wire:ignore and wire:ignore.self on very component approve-button wire:ignore.self
and on all of the parents up to td, nothing worked.
Context All the latest of Laravel, Livewire and tested in Chrome.
Adding some code here: product-list.blade.hp
products.blade.php
Products.php