react-stripe-js icon indicating copy to clipboard operation
react-stripe-js copied to clipboard

[BUG]: PaymentElement onLoaderStart sometimes fails to fire

Open randypuro opened this issue 11 months ago • 2 comments

What happened?

Apologies, as it's difficult to create a reproduction since the failure is intermittent; however, we were able to reproduce the issue on our end with repetitive retries. We depend on PaymentElement onLoaderStart to show our UI, and occasionally this callback is not firing (although onReady still fires).

Environment

Chrome 122.0.6261.94 MacOS 14.3.1

Reproduction

No response

randypuro avatar Mar 08 '24 23:03 randypuro

Hello!

If you don't pass in loader: always to your elements initialization, we might choose not to display it (e.g. form render optimization). We'll work on making the docs a bit more legible.

In the meanwhile if you depend on the loader, pass loader: always into the elements provider options.

Please let us know if this doesn't work for you.

wahba-stripe avatar Mar 09 '24 01:03 wahba-stripe

Ah, gotcha, that makes sense. Thanks for the clarification and apologies for the noise.

randypuro avatar Mar 09 '24 02:03 randypuro