summaryrefslogtreecommitdiffstats
path: root/src/utils/helpers/slugify.ts
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-01-11 15:28:08 +0100
committerArmand Philippot <git@armandphilippot.com>2022-01-11 15:33:04 +0100
commit99014e5634c6216173bf90117750f95172924134 (patch)
treea1e53640de7ecc7af4cfe4b29e3c78516504d485 /src/utils/helpers/slugify.ts
parent1a74d19cf4ad080e822e84472288c701ce001e60 (diff)
fix(toc): render on each route change and exclude aside titles
On subject pages for example, the table of contents was not updated on route change. So I added router.asPath as dependency of useEffect. I also changed the query to exclude all titles in aside (ToC, widgets).
Diffstat (limited to 'src/utils/helpers/slugify.ts')
0 files changed, 0 insertions, 0 deletions