Record data not updated after changes on a Livewire component within a Infolist
Hello.
I'm building custom InfoList for a Document record.
The document is shared throuh a form where the user can add emails and send the link. This behavior is already working in a livewire component that is being added in the infolist.
Then below the form i have an Action component that allows me to disable the shared link. This action is not loaded until the document is shared and the shared link is available for the document (After submitting the form).
The problem is that when I submit the form and the link is generated, the Action below is not being disaplayed until I refresh the page. This should be reactive on the infolist (i guess) but I dont know how to trigger the reactivity on the Action entry in order to display the button without reloading the whole page.
Any help is appreciated.
15 Replies
Could you share the code?
Sure, might be too long.
Currently I'm having this issue:
The workflows field dissapears and console show this message:
Uncaught Snapshot missing on Livewire component with id: 3bwb9bwuaHSqfk8zBQhw
Could you share the blade, where you are using the livewire component?
I'm creating a custom Page because I was using a custom ListRecord page.
Why you are using wire:key?
Was trying to fix this:
Uncaught Snapshot missing on Livewire component with id:
Could you add a test?
wire:key="{{ now() }}"
Well, I'm not using that wire:key at all. I've copied the view-record view but I'm using an infolist so that condition is not loaded.
Where is the select? Where is the "Guardar" button?
In the
{{ $this->form }}
?
hum here? Workflow::getInfolistComponents($this->getRecord())
How are you rendering the fields?The select is in a livewire component
getInfolistComponents loads the livewire component:
And DocumentWorkflow::class is the livewire components which has InteractsWithForm
hum, when you are using a loop, you should include a unique key value for each iteration
You mean on Section ::make()...?
I think I've already tried that, but will do it again.
Laravel
Nesting Components | Laravel
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.