#brain_unexpected
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/1314252937995878512
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
Here's how it looks like:
It was working before, so unsure what the problem might be. Pretty sure it's not in the code.
Thanks, give me a moment to look
Can you also share your frontend code snippet actually?
Yup
Okay we are investigating internally. I'll keep you updated but yes does look like a bug on our end.
// Initialize Stripe Connect only once
useEffect(() => {
const initialize = async () => {
try {
setIsLoading(true);
if (!stripeConnectPromiseRef.current) {
stripeConnectPromiseRef.current = initializeStripeConnect(
async () => {
const session = await getAccountSession();
return session.client_secret;
},
theme,
);
}
const stripeConnect = await stripeConnectPromiseRef.current;
stripeConnectRef.current = stripeConnect;
if (isMounted && containerRef.current) {
setIsLoading(false);
componentRef.current = createAndMountComponent(
containerRef.current,
stripeConnect,
"balances",
setError,
);
}
} catch (err: any) {
if (isMounted) {
setError(err.message || "Failed to initialize");
setIsLoading(false);
}
}
};
initialize();
}, [userId]);
[...]
<div
id="stripe-component-container"
ref={containerRef}
className="w-full min-h-[400px] max-h-[400px] p-2 sm:p-6 overflow-auto"
/>
</div>
Hi ๐
I am stepping in as my colleague needed to step away. We have a fix for this that we are currently working on.
๐ช
Fix deployed. Let me know if you are still encoutering this issue
Wonderful! Thanks for the confirmation