#danxcr-payment-element

1 messages · Page 1 of 1 (latest)

uneven quail
#

It sounds like next.js might be pre-rendering the page, which is causing the mount function to run before the page is fully rendered in the browser. Can you try opting out of pre-rendering for that page and see if that works?

I believe getInitialProps might be what you're looking for: https://nextjs.org/docs/api-reference/data-fetching/get-initial-props

maiden bramble
#

I solved it, disabling ssr from that specific component, thanks a lot for the help 😊