Skip to content

Commit

Permalink
Revert "types"
Browse files Browse the repository at this point in the history
This reverts commit a12c76a.
  • Loading branch information
feedthejim committed Sep 14, 2023
1 parent 906896c commit 9c45cf0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/next/src/lib/metadata/metadata.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,5 +129,6 @@ export function createMetadataComponents({
return null
}

// @ts-expect-error async server components
return [MetadataTree, MetadataOutlet]
}
2 changes: 1 addition & 1 deletion packages/next/src/server/app-render/app-render.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,7 @@ export async function renderToHTMLOrFlight(
isPrefetch && !Boolean(components.loading)
? null
: // Create component tree using the slice of the loaderTree

// @ts-expect-error TODO-APP: fix async component type
React.createElement(async () => {
const { Component } = await createComponentTree(
// This ensures flightRouterPath is valid and filters down the tree
Expand Down

0 comments on commit 9c45cf0

Please sign in to comment.