Refetching data on state change
Here is my data fetch code inside my functional component. How can I make the useOne hook get called again using a useEffect, while also making that data that is fetched available to the rest of the component.
const { data: scenarios, isLoading, refetch } = useOne({
resource: "scenarios/course",
id,
});