Custom live field not updated in a custom action
Hi everyone !
Today I'm facing an issue with two custom objects, an Action and a Field.
The problem is while I'm interacting with the search input (a live entangled property) I need to update a list of items in realtime, but the method
I clearly see the
My custom action is a modal containing a form, with my custom field, the code is really simple as below:
(Thanks in advance for your help !
)
And the real problem (I think) is on my field and his reactivity.
This field is really simple, there's a search input:
And the associated "tasks" list:
The "construction" of my field view is like this:
Today I'm facing an issue with two custom objects, an Action and a Field.
The problem is while I'm interacting with the search input (a live entangled property) I need to update a list of items in realtime, but the method
afterStateUpdated(function (TasksList $component, $state) { ... }); is never called.I clearly see the
update endpoint called in real-time like the screenshot joined, but my dd($state) in the afterStateUpdated() function of my custom field is never called.My custom action is a modal containing a form, with my custom field, the code is really simple as below:
(Thanks in advance for your help !
And the real problem (I think) is on my field and his reactivity.
This field is really simple, there's a search input:
And the associated "tasks" list:
<template x-for="task in tasks" :key="task.id">The "construction" of my field view is like this: