on master help sign in
docs: refresh toc on slug change
commitf7a3f9710914aa57e9d7973b7b63bdf2664ac403 authorMatilde Park <matilde@tlon.io> dateThu 22 Jul 2021, 18:00 (5 years ago) parentfb57366
1 file changed+1−1
pages/docs/[[...slug]].js+1−1
pages/docs/[[...slug]].js+1−1
@@ -173,7 +173,7 @@ export default function DocsLayout({
173173 )}
174174 </div>
175175 </ContentArea>
176− <TableOfContents />
176+ <TableOfContents key={params.slug.join("/")} />
177177 </div>
178178 </>
179179 );