saleor-apps-redis_apl/apps/data-importer/src/no-ssr-wrapper.tsx
2023-02-07 19:11:39 +01:00

8 lines
277 B
TypeScript

import React, { PropsWithChildren } from "react";
import dynamic from "next/dynamic";
const Wrapper = (props: PropsWithChildren<{}>) => <React.Fragment>{props.children}</React.Fragment>;
export const NoSSRWrapper = dynamic(() => Promise.resolve(Wrapper), {
ssr: false,
});