aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/hooks/use-comments.tsx
Commit message (Collapse)AuthorAgeFilesLines
* refactor(types): move and rename GraphQL typesArmand Philippot2022-08-201-4/+2
| | | | | | | The api file in services was not really readable. So I move the types and I also rewrite a little the fetch function. I also rename most of the type to avoid conflict with preexisting types (like Node) and to keep consistency.
* fix(article): prevent TypeError on buildArmand Philippot2022-07-231-5/+12
| | | | | | By switching to custom hooks for revalidating articles and comments, everything was working on development mode but articles failed to build for production.
* refactor(article): wrap useSWR with a custom hook to revalidate articleArmand Philippot2022-07-221-4/+4
|
* fix(comments): refresh comments on changes or new commentArmand Philippot2022-07-221-0/+33