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

support or ommit __self and __source props

Open sergey-shablenko opened this issue 6 years ago • 4 comments

In development mode there are some debug props like __source and __self with circular structure, your elements crash during props check (isEqual util), could you add support for those props or just ignore them, or fix your util to support circular structures?

I would like to turn off those props, but I'm using create-react-app and I don't have control over presets inside webpack config, ejecting is not an option

sergey-shablenko avatar Feb 13 '20 13:02 sergey-shablenko

I'm curious about this and would like to play with it. Can you help me by providing some reproduction steps, or even better a codesandbox or repo that demonstrates the crash?

jonchurch avatar Feb 18 '20 22:02 jonchurch

Just create empty project with latest CRA and try to use CardNumberElement Cannot reproduce on sandbox, it seems to use production build

It only happens in development mode, app works in production but it is really hard to debug something using production builds

sergey-shablenko avatar Feb 24 '20 11:02 sergey-shablenko

Happen to me too with GatsbyJS in dev :(

yocmen avatar Jul 15 '20 12:07 yocmen

Closing this as this project has migrated to React Stripe.js as of early 2020, which also has a somewhat different API. If you believe this is still important, please re-open it there.

sashko-stripe avatar Mar 26 '21 19:03 sashko-stripe