aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/hooks/useGithubApi.tsx
Commit message (Collapse)AuthorAgeFilesLines
* chore: remove old pages, components, helpers and typesArmand Philippot2022-04-291-23/+0
| | | | | Since I'm using new components, I will also rewrite the GraphQL queries so it is easier to start from scratch.
* refactor(project): replace repo api call method with hook and swrArmand Philippot2022-01-241-0/+23
Instead of using post slug and an environment variable to fetch repo data, I use the given repo in each project MDX file. It allows me to fetch data from another user/organization if needed. To make it work, I no longer provide the full URL in MDX file. The new format is: "User/repo-slug". I also replaced the fetch method with SWR to improve caching and to avoid React complaining about cleanup useEffect.