#pedro-mameluque_code
1 messages Β· Page 1 of 1 (latest)
π 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.
π happy to help
Thanks π struggling for some days with it already
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
but why does it work on dev and not on prod? Sorry still junior coder
this is the full function
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
hmm, it makes sense, do you recommend any channel i might get some help with that?
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?
yes, this specific component is useing 'use client'
ok
sure! let me know if you need any more help
ΠΡΠΈΠ²Π΅Ρ