I have a fairly simple component to test this hook..
import { useEventRunDetails } from "@trigger.dev/react";
import { Text, BlockStack } from "@shopify/ui-extensions-react/admin";
export default function EventRunData({ id }) {
const { isLoading, isError, data, error } = useEventRunDetails(id);
console.log(isLoading, isError, data, error);
if (isLoading || !data) {
console.log("loading...");
return <Text>loading...</Text>;
}
return (
<BlockStack gap>
<Text>status: {data.status}</Text>
{data.tasks.map((task) => (
<Text key={task.name}>
{task.status}: {task.name}
</Text>
))}
</BlockStack>
);
}
From what I understand it's to continue to update until the run has completed.
But it displays about half the tasks and gets stuck on status executing.
Once the run is complete, if I send in the event ID in again, it'll show all the tasks are completed and that the run has a status of success.
So the issue is, is that we are not getting automatic updates.