From 2355c364fc8d6b9960ec7b9888e004f83d1732ce Mon Sep 17 00:00:00 2001 From: Dimitri POSTOLOV Date: Sun, 1 Oct 2023 21:09:50 +0200 Subject: [PATCH] remove unneeded string coercion Update index.tsx according to props compiledSource is string https://github.com/hashicorp/next-mdx-remote/blob/4b2c128f16dba9d440fe7f4931e04bb8c5d74474/src/types.ts#L34 --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index e6ec72c..5940c8a 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -93,7 +93,7 @@ export function MDXRemote({ // function with the actual values. const hydrateFn = Reflect.construct( Function, - keys.concat(`${compiledSource}`) + keys.concat(compiledSource) ) return hydrateFn.apply(hydrateFn, values).default