#daartanian_embedded-multiplecomponents
1 messages Β· Page 1 of 1 (latest)
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.
- daartanian_error, 16 hours ago, 75 messages
π 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/1240696846163378186
π Have more to share? Add more details, code, screenshots, videos, etc. below.
π hello!
good morning ππ»
Let me dig back into this, sorry it was a busy morning and haven't had a chance to touch this yet
no worries
pulling in your example for reference:
const onboardingComponent = stripeConnectInstance.create('account-onboarding');
onboardingComponent.setOnExit(() => {
console.log("rendering the second one");
const dashboardComponent = stripeConnectInstance.create('account-management');
const container2 = document.getElementById("container-dashboard");
container2.appendChild(dashboardComponent);
});
const container = document.getElementById("container");
container.appendChild(onboardingComponent);
the only thing I can think of as to why this would work ππ»while mine doesn't is a race condition π€
unless my code is just bonkers somewhere... which is always a possibility
Can you try mine quickly?
sure
I don't use the npm package so it's possible they also behave differently too
well.. I would, but apparently my project's backend just exploded
so I am trying to unravel that
I might have to get back to this
all good, I'm also pairing with someone on my team to reproduce in React
Okay I tried with a brand new Stripe account that I just created, provided some details, clicked submit and it loads the next one totally fine at least
Waiting on my colleague to get a running demo in React
ah I know what I missed, you use Express accounts and it behaves differently and I can reproduce
So yeah I think it's our bug in the end!
daartanian_embedded-multiplecomponents
@shadow sorrel okay the product team is looking into this. Might take a bit of time to fix but we're working on it!
oh wow! hey hey, I actually surfaced a bug for you guys π a nice feeling that I am not crazy π
in the meantime, is there a good workaround flow to be able to move from onboarding a customer to being able to showcase them cool Stripe components with information about their account?
Not yet, I'm now checking if adding a small delay fixes it
Yeah I just tried locally and if I wait 5 seconds after onExit and then load the component it works
you shouldn't have to but that could work as a temporary fix for you
oh nice, yea I was wondering about the race condition. I will try that implementation in a bit here and see if it works. What is my time out window of time with this thread before it closes?
I'm going to close it now. I think we've narrowed down the exact issue and a workaround and the product team is working on a fix. Is that okay?
If you need to follow up about the bug, the best option would be to reach out to our support team and they can help inform you once the issue is really fixed: https://support.stripe.com/contact
got it. cool! works for me.
hey, thanks for being a champ @spring ocean. this is the first time I have tried working with Stripe in general, but man, this dev support was phenomenal. appreciate it greatly ππ»
So glad we could figure it out! I wish I hadn't missed you were using Express last night as I would have been able to reproduce faster but I'm glad we figured it out π