Download next.js/packages/next/src/client/app-next-dev.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 748 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/client/app-next-dev.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/packages/next/src/client/app-next-dev.ts
-
curl -L -o app-next-dev.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/client/app-next-dev.ts
748 Bytes
| // TODO-APP: hydration warning | |
| import './app-webpack' | |
| import { renderAppDevOverlay } from 'next/dist/compiled/next-devtools' | |
| import { appBootstrap } from './app-bootstrap' | |
| import { | |
| getComponentStack, | |
| getOwnerStack, | |
| } from '../next-devtools/userspace/app/errors/stitched-error' | |
| import { isRecoverableError } from './react-client-callbacks/on-recoverable-error' | |
| // eslint-disable-next-line @next/internal/typechecked-require | |
| const instrumentationHooks = require('../lib/require-instrumentation-client') | |
| appBootstrap(() => { | |
| const { hydrate } = require('./app-index') as typeof import('./app-index') | |
| try { | |
| hydrate(instrumentationHooks) | |
| } finally { | |
| renderAppDevOverlay(getComponentStack, getOwnerStack, isRecoverableError) | |
| } | |
| }) | |