Browse Source

[Beta] Prefetch CodeBlock (#5159)

main
dan 2 years ago
committed by GitHub
parent
commit
25d45897c0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      beta/src/components/Layout/MarkdownPage.tsx

2
beta/src/components/Layout/MarkdownPage.tsx

@ -9,6 +9,8 @@ import PageHeading from 'components/PageHeading';
import {useRouteMeta} from './useRouteMeta';
import {TocContext} from '../MDX/TocContext';
import(/* webpackPrefetch: true */ '../MDX/CodeBlock/CodeBlock');
export interface MarkdownProps<Frontmatter> {
meta: Frontmatter & {description?: string};
children?: React.ReactNode;

Loading…
Cancel
Save