#daartanian_embedded-multiplecomponents

1 messages Β· Page 1 of 1 (latest)

crystal dustBOT
wicked valveBOT
#

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.

crystal dustBOT
#

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

spring ocean
#

πŸ‘‹ hello!

shadow sorrel
#

good morning πŸ‘‹πŸ»

spring ocean
#

Let me dig back into this, sorry it was a busy morning and haven't had a chance to touch this yet

shadow sorrel
#

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

spring ocean
#

Can you try mine quickly?

shadow sorrel
#

sure

spring ocean
#

I don't use the npm package so it's possible they also behave differently too

shadow sorrel
#

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

spring ocean
#

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

spring ocean
#

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!

spring ocean
#

daartanian_embedded-multiplecomponents

wicked valveBOT
spring ocean
#

@shadow sorrel okay the product team is looking into this. Might take a bit of time to fix but we're working on it!

shadow sorrel
#

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?

spring ocean
#

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

shadow sorrel
#

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?

spring ocean
#

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

shadow sorrel
#

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 πŸ‘πŸ»

spring ocean
#

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 πŸ™‚