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

Chart Rendering twice in strict mode #756

Open
minsoftk opened this issue Oct 20, 2022 · 1 comment
Open

Chart Rendering twice in strict mode #756

minsoftk opened this issue Oct 20, 2022 · 1 comment
Labels

Comments

@minsoftk
Copy link

minsoftk commented Oct 20, 2022

Describe the bug
I'm using CRA v5, but Chart rendering problem in React.StrictMode.
becasue React 18 renders my component twice in development mode(strict mode).
The strict mode is removed, so it works normally.

Expected behavior
I hope the chart will be rendered only once even in strict mode.

Screenshots

when applied React StrictMode

  • Render twice above Chart container
  • chart container has strangely height

image

when remove React StrictMode

  • chart container has normally height

image

Desktop (please complete the following information):

  • OS: macOS Monterey 12.6
  • Browser: chrome(106.0.5249.119(공식 빌드) (x86_64)), firefox(103)

Additional context
I wonder how your team will solve it.

@stale
Copy link

stale bot commented Jan 8, 2023

This issue has been automatically marked as inactive because there hasn’t been much going on it lately. It is going to be closed after 7 days. Thanks!

@stale stale bot added the inactive label Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant