aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/hooks/use-thematics-list
Commit message (Collapse)AuthorAgeFilesLines
* fix(pages): do not show spinner when data are availableArmand Philippot2023-12-181-1/+1
| | | | | | | | The `useSWR` hook set `isLoading` to `true` on first fetch even if the fallback data is provided. It affects how pages are generated on build: the loading page is showing instead of the actual page. So we need to return a custom `isLoading` variable that checks if there is no data.
* refactor(pages): refine Thematic pagesArmand Philippot2023-12-013-0/+99
* add a table of contents (however posts heading are not included) * rename posts list section title * add a useThematic hook to refresh thematic contents * add a useThematicLists hook to refresh thematics list * add a `notIn` filter in thematics list fetcher to directly remove unwanted thematics * add Cypress tests