0

I'm getting a "sync-dynamic-apis" error in my Next.js App Router dynamic route component, despite following what seems like the correct pattern. The page renders correctly in the browser, but I'm seeing this error in the terminal: Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis at PostPage (file://C%3A/Users/user/Desktop/React/next/projects/lesson1/src/app/products/%5Bproduct%5D/page.tsx:3:12)

// app/products/[id]/page.tsx
export default function PostPage({ params }: { params: { id: string } }) {
    return (
        <div>
            <h1>Product: {params["id"]}</h1>
        </div>
    );
}

1 Answer 1

0

i ignored this in my case since it use a flash or delay before the page loads if i used the async await.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.