#thallescomh_code

1 messages ยท Page 1 of 1 (latest)

sage sageBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1319427947471310848

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

severe wolf
#

Hi, it's me again, sorry for missing the previous thread.

hard spruce
#

Hello! Did you try the suggestions that were made before?

severe wolf
severe wolf
hard spruce
#

Checking to see if my colleague who knows way more about Next.js than I do can hop back in...

vestal jungle
#

Hello, unfortunately I'm not the one who knows way more but I'm happy to try to help again. I will see if I can reproduce this on my own server

#

That is interesting that the element is rendering properly, that implies that the hooks are returning the right thing at least at first

severe wolf
#

no problem, im trying to debug in here too

#

yep, i've another component that uses the payment mode instead of setup and it works

severe wolf
vestal jungle
#

Ah, so the code is decently different for that component? Can you share the code for that component as well for reference?

severe wolf
#

im removing parts of my code to see what its wrong, i kinda got it working but i still don't know what the problem is
give me sometime to debug it a little more.

vestal jungle
#

Always a great way to narrow down the issue!

severe wolf
#

found it

#

im so ashamed

#

useCallback didnt contain the stripe and elements as a dependency

vestal jungle
#

Nice catching it! No shame, these things can get very complex