chargebee / chargebee-js-wrappers

24 stars 10 forks source link

Chard component is getting rendered for two times #134

Open mcarry1 opened 1 year ago

mcarry1 commented 1 year ago

when i am using card component from chargbee-react-js-wrapper i am getting wierd output. as shown in below attachments placeholder is being shown two times. Also i pass onload function to this component then i am getting 2 console logs that means two card are getting rendered that's why this issue is coming image image

this is coming from below file of your code image

MrCookiez commented 1 year ago

Most probably you are in development mode, right? This usually occurs in React when using strict mode.

More info here https://legacy.reactjs.org/docs/strict-mode.html#detecting-unexpected-side-effects

mcarry1 commented 1 year ago

@MrCookiez yes i am in development mode. Thanks for the response

damyco commented 9 months ago

Why does it happen with chargbee component only though? I never had this issue before with any of my own components, or any other component to be fair.

rainkinz commented 1 month ago

I am seeing the same issue.