From 88d1008054521f7f2c3fb269de544a3b3ff9ecd6 Mon Sep 17 00:00:00 2001 From: Dimitri POSTOLOV Date: Sun, 1 Oct 2023 21:11:07 +0200 Subject: [PATCH] use spread instead of `Array#apply` Update index.tsx --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index e6ec72c..44fcba8 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -96,7 +96,7 @@ export function MDXRemote({ keys.concat(`${compiledSource}`) ) - return hydrateFn.apply(hydrateFn, values).default + return hydrateFn(...values).default }, [scope, compiledSource]) if (!isReadyToRender) {