Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chard component is getting rendered for two times #134

Open
mcarry1 opened this issue Mar 15, 2023 · 4 comments
Open

Chard component is getting rendered for two times #134

mcarry1 opened this issue Mar 15, 2023 · 4 comments
Assignees

Comments

@mcarry1
Copy link

mcarry1 commented Mar 15, 2023

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
Copy link

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
Copy link
Author

mcarry1 commented Mar 28, 2023

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

@damyco
Copy link

damyco commented Nov 17, 2023

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
Copy link

rainkinz commented Aug 8, 2024

I am seeing the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants