Skip to content

fetchStripeSignature doesn't work well in a highly concurrent scenario #934

@tobiasr

Description

@tobiasr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions