Download next.js/packages/next/src/export/helpers/is-dynamic-usage-error.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 494 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/export/helpers/is-dynamic-usage-error.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/packages/next/src/export/helpers/is-dynamic-usage-error.ts
-
curl -L -o is-dynamic-usage-error.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/export/helpers/is-dynamic-usage-error.ts
494 Bytes
| import { isDynamicServerError } from '../../client/components/hooks-server-context' | |
| import { isBailoutToCSRError } from '../../shared/lib/lazy-dynamic/bailout-to-csr' | |
| import { isNextRouterError } from '../../client/components/is-next-router-error' | |
| import { isDynamicPostpone } from '../../server/app-render/dynamic-rendering' | |
| export const isDynamicUsageError = (err: unknown) => | |
| isDynamicServerError(err) || | |
| isBailoutToCSRError(err) || | |
| isNextRouterError(err) || | |
| isDynamicPostpone(err) | |