-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
Just a little advice: change that name to something like ReactStripeButton because checkout.js defines StripeButton, too, so when you build the React objects the first time all is fine (because stripe's script is loaded asynchronously), then if something happens that require to access again to the React object StripeButton was pointing to (like a setState() call), React throws exception (Uncaught TypeError: type.toUpperCase is not a function).
Really a little nasty bug, it took my hours to figure out and fix it.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels