UNPKG

next-mdx-remote-client

Version:

A wrapper of the `@mdx-js/mdx` for the `nextjs` applications in order to load MDX content. It is a fork of `next-mdx-remote`.

16 lines (15 loc) 702 B
/** * Copyright (c) @talatkuyuk AKA @ipikuka * SPDX-License-Identifier: MPL-2.0 */ import type { HydrateAsyncProps, HydrateResult } from "./types.js"; /** * This is experimental and proof for NOT WORKING in pages directory * * "run"s the javascript code in the compiled source, and * returns the <Content /> component whether or not wrapped with the MDXProvider * in the domain of client side rendering (csr). * * the hydration process occurs asynchronously in the useEffect so as to import modules in the compiled source. */ export declare function hydrateAsync({ compiledSource, frontmatter, scope, components, disableParentContext, options, loading, }: HydrateAsyncProps): HydrateResult;