Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Dec 2, 2022
1 parent 3dc3aba commit 4b757fe
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 46 deletions.
37 changes: 0 additions & 37 deletions packages/next/shared/lib/dynamic-error-boundary.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions packages/next/shared/lib/dynamic.tsx
@@ -1,6 +1,5 @@
import React, { Suspense } from 'react'
import Loadable from './loadable'
import DynamicBoundary from './dynamic-error-boundary'

import { NEXT_DYNAMIC_NO_SSR_CODE } from './no-ssr-error'

Expand Down Expand Up @@ -75,8 +74,6 @@ export function noSSR<P = {}>(
return () => (
<Suspense fallback={fallback}>
<NoSSRComponent />
{/* <DynamicBoundary>
</DynamicBoundary> */}
</Suspense>
)
}
Expand Down
2 changes: 2 additions & 0 deletions packages/next/shared/lib/loadable-context.ts
@@ -1,3 +1,5 @@
'use client'

import React from 'react'

type CaptureFn = (moduleName: string) => void
Expand Down
7 changes: 1 addition & 6 deletions packages/next/shared/lib/loadable.js
Expand Up @@ -23,7 +23,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE

import React from 'react'
import { LoadableContext } from './loadable-context'
import DynamicBoundary from './dynamic-error-boundary'

const ALL_INITIALIZERS = []
const READY_INITIALIZERS = []
Expand Down Expand Up @@ -130,11 +129,7 @@ function createLoadableComponent(loadFn, options) {
{
fallback: fallbackElement,
},
React.createElement(
DynamicBoundary,
null,
React.createElement(opts.lazy, props)
)
React.createElement(opts.lazy, props)
)
}

Expand Down

0 comments on commit 4b757fe

Please sign in to comment.