#Using loaderData in useEffect

1 messages · Page 1 of 1 (latest)

odd yoke
#

By refetch from a loader in a use effect do you mean calling a loader or getting data that was returned from a loader using the useMatches route?

obsidian prairie
#

I am fetching data within the loader function but that data is always changing. Which is why I need a way to repeatedly call useLoaderData with updated data from the loader

odd yoke
#

Can you create a codesandbox so I can have alook at this?