next.js/packages/next-codemod/transforms/__testfixtures__/next-async-request-api-dynamic-props/access-props-40.output.tsx
access-props-40.output.tsx18 lines367 B
import type { PropsWithChildren } from 'react';


export default async function Page(
  props: PropsWithChildren<{
    params: Promise<{
      projectId: string;
      collectionId: string;
    }>;
  }>
) {
  callback(() => {
    foo({
      projectId: /* @next-codemod-error 'props.params' is accessed without awaiting.*/
      props.params.projectId,
    });
  })
}
Quest for Codev2.0.0
/
SIGN IN