next.js
ac41e473 - test: update component to async to avoid TS error in build (#67557)

Commit
1 year ago
test: update component to async to avoid TS error in build (#67557) ### What Change the shared test component to async since it's used in both server/client components. Found this error while testing other stuff, it's because the async shared component is accidentally used in client component page ``` ===== TS errors ===== [Test Mode] ./app/client/edge/page.tsx:5:23 Type error: 'ErrorComponent' cannot be used as a JSX component. Its type '({ name }: { name: string; }) => Promise<any>' is not a valid JSX element type. ```
Author
Parents
Loading