Getting status integrating react-query with react-router loaders - TanStack