What are the ways to load data asynchronously in a live component?
So far I’ve tried the following and they all interact with the parent view which I’d like to avoid / hide:
-
Spawn a task in a stateful component, then
send_update
from the parent. If the task fails, I don’t have the ref to know the component for which the task has failed in order to retry it. -
Spawn the task in the parent view, then
update
the component. In this approach the logic leaks from the component into the parent view.
Is there some other way I’m missing?