Skip to content

Commit

Permalink
Update remote-content.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaMachina authored Oct 2, 2024
1 parent 1175356 commit b6b9b6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nextra/src/client/components/remote-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ export function RemoteContent({
)
}

const MDXContent = evaluate(compiledSource, scope).default
const MDXContent = /* @__PURE__ */ evaluate(compiledSource, scope).default

return <MDXContent components={components} />
}

RemoteContent.useTOC = (props: Record<string, unknown>) => {
const compiledSource = useData('__nextra_dynamic_mdx')
const { useTOC } = evaluate(compiledSource)
const { useTOC } = /* @__PURE__ */ evaluate(compiledSource)
return useTOC(props)
}

0 comments on commit b6b9b6d

Please sign in to comment.