Describe the bug
We have an app that does quite a few requests on load. Each requests needs to call fetchStripeSignature to get the signature to send to the server. Some of the calls are made very concurrently.
It seems like (at least in development) that when the calls to fetchStripeSignature are to quick, we just get stuck on await and it never returns.
To solve this we've had to add a "sleep" based on the number of pending requests so to not call fetchStripeSignature to quickly.
Expected behavior
That it is possible to call await fetchStripeSignature on each request without having to either cache the signature or implement "sleep"-patterns.
Describe the bug
We have an app that does quite a few requests on load. Each requests needs to call
fetchStripeSignatureto get the signature to send to the server. Some of the calls are made very concurrently.It seems like (at least in development) that when the calls to
fetchStripeSignatureare to quick, we just get stuck onawaitand it never returns.To solve this we've had to add a "sleep" based on the number of pending requests so to not call
fetchStripeSignatureto quickly.Expected behavior
That it is possible to call
await fetchStripeSignatureon each request without having to either cache the signature or implement "sleep"-patterns.