#KevH

1 messages · Page 1 of 1 (latest)

wraith rivetBOT
compact ferry
#

Hi! Let me help you with this.

#

Could you please share screenshots where you see this.

stuck shard
#

We see it in our Sentry client monitoring which is capturing all the console logs.

compact ferry
#

Any other context? Maybe you could share how are you loading Stripe?

stuck shard
#

it is being loaded as follows when the page is loaded: const [stripePromise, setStripePromise] = useState(() => loadStripe(config.stripe.key));

#

It is a react site

#

I don't believe it to be an issue with the site itself, or even stripe. But a connection issue on their device. This does cause the user to not be able to checkout though. So would need to implement a solution.

compact ferry
#

Do you ever use setStripePromise?

stuck shard
#

no, the state is never updated after the initial load

compact ferry
#

Can you just use const stripePromise = loadStripe(config.stripe.key)?

#

Outside of React components.

stuck shard
#

wouldn't this still cause the load issue?

compact ferry
#

I don't know what's causing it, but this code looks unusual. Why return a promise inside a function?

stuck shard
#

I believe I found an example of it being done in that way.

compact ferry
#

Could you try this and see what happens? I'm not sure this will help, but I lack information to make any other suggestions.

stuck shard
#

I'll try it an see what happens. Fingers crossed!

compact ferry
#

Please let me know.