Skip to content

Commit

Permalink
revert loadable change
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Oct 6, 2022
1 parent e3aab6c commit b21667d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/next/shared/lib/loadable.js
Expand Up @@ -125,14 +125,10 @@ function createLoadableComponent(loadFn, options) {
context(moduleName)
})
}
return !!context
}

function LoadableImpl(props, ref) {
const hasPreloadContext = useLoadableModule()
if (!hasPreloadContext) {
return LazyImpl(props, ref)
}
useLoadableModule()

const state = useSyncExternalStore(
subscription.subscribe,
Expand Down

0 comments on commit b21667d

Please sign in to comment.