Skip to content

Usage of cartCount causes an SSR mismatch error in Next.js #122

@thorsten-stripe

Description

@thorsten-stripe

I'm not sure why this is happening:
image

cartCount renders correctly in the <p> tag but for setting the disabled value on the button it doesn't: https://github.com/thorsten-stripe/next.js/blob/thor/stripe/add-use-shopping-cart-example/examples/with-stripe-typescript/components/CartSummary.tsx#L45

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working or fixes something that isn't workingon holdDepends on another issue to be fixed first.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions