create project
This commit is contained in:
17
kitabcitab/node_modules/next/dist/esm/shared/lib/dynamic-no-ssr.js
generated
vendored
Normal file
17
kitabcitab/node_modules/next/dist/esm/shared/lib/dynamic-no-ssr.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
"use client";
|
||||
import React from 'react';
|
||||
import { NEXT_DYNAMIC_NO_SSR_CODE } from './no-ssr-error';
|
||||
|
||||
export function suspense() {
|
||||
const error = new Error(NEXT_DYNAMIC_NO_SSR_CODE);
|
||||
error.digest = NEXT_DYNAMIC_NO_SSR_CODE;
|
||||
throw error;
|
||||
}
|
||||
export default function NoSSR({ children }) {
|
||||
if (typeof window === 'undefined') {
|
||||
suspense();
|
||||
}
|
||||
return children;
|
||||
};
|
||||
|
||||
//# sourceMappingURL=dynamic-no-ssr.js.map
|
||||
Reference in New Issue
Block a user