#pedro-mameluque_code

1 messages Β· Page 1 of 1 (latest)

dusty magnetBOT
#

πŸ‘‹ 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/1325814149782966334

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

rain basin
#

πŸ‘‹ happy to help

neon merlin
#

Thanks πŸ™‚ struggling for some days with it already

rain basin
#

where are you getting your account status from?

#

oh in useEffect(() => {
if (stripeConnectId) {
fetchAccountStatus();
}
}, [stripeConnectId]);

#

you're running const isReadyToAcceptPayments = accountStatus?.isActive && accountStatus?.payoutsEnabled; before running the useEffect

#

it's normal if you're using server-side rendering for it to not work

#

since the accountStatus is undefined

neon merlin
#

but why does it work on dev and not on prod? Sorry still junior coder

rain basin
#

I'm not sure if in dev you're using client-side rendering or what exactly

#

this is more of an issue of next.js and not totally related to Stripe

neon merlin
#

hmm, it makes sense, do you recommend any channel i might get some help with that?

rain basin
#

you need to work with your team to better understand the difference between server-side rendering and client-side rendering

#

are you using 'use client' at the start of your component?

neon merlin
#

yes, this specific component is useing 'use client'

rain basin
#

ok

neon merlin
#

I'll redo my code try mode debugging

#

thanks for the tarzan!

rain basin
#

sure! let me know if you need any more help

dusty magnetBOT
sick ginkgo
#

ΠŸΡ€ΠΈΠ²Π΅Ρ‚

dull pebble
#

@sick ginkgo if you have a question, please ask via #help !