dual-salmonD
Refine3y ago
22 replies
dual-salmon

Refetching data on state change

const { data: scenarios, isLoading, refetch } = useOne({
        resource: "scenarios/course",
        id,
    });
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.
Was this page helpful?