{"size": 216, "ext": "js", "max_stars_repo_path": "src/hooks/useTrainers.js", "max_stars_repo_name": "ryangillman/baseball-superstars-deckbuilder", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/hooks/useTrainers.js", "max_issues_repo_name": "ryangillman/baseball-superstars-deckbuilder", "max_issues_repo_issues_event_min_datetime": "2020-09-12T11:53:28.000Z", "max_issues_repo_issues_event_max_datetime": "2021-12-07T10:21:08.000Z", "max_forks_repo_path": "src/hooks/useTrainers.js", "max_forks_repo_name": "ryangillman/baseball-superstars-deckbuilder", "max_forks_repo_forks_event_min_datetime": "2020-09-15T05:57:16.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-31T19:15:43.000Z"}
{"max_stars_count": null, "max_issues_count": 6, "max_forks_count": 5, "avg_line_length": 21.6, "max_line_length": 48, "alphanum_fraction": 0.6944444444}
import { useQuery } from 'react-query';
import getTrainers from '../api/trainerQueries';

const useTrainers = () =>
  useQuery(['trainers'], getTrainers, {
    staleTime: Infinity,
  });

export default useTrainers;
