alibaba / BizCharts

Powerful data visualization library based on G2 and React.
http://bizcharts.net/products/bizCharts
6.16k stars 671 forks source link

Issue with Chart Visualization in React/Next.js Project Using StrictMode #1559

Open emnetdev opened 8 months ago

emnetdev commented 8 months ago

Hello,

I am encountering an issue with displaying charts from bizcharts in a React/Next.js project when StrictMode is enabled. The charts do not appear while StrictMode is active.

Steps to Reproduce:

  1. Create a new project using npx create-next-app@latest.
  2. Install bizcharts with npm i bizcharts.
  3. The code added to the main page of the application can be found in the attached image.
  4. Launch the application with npm run dev.
  5. Notice that the charts are not rendered.

image

image

Attempted Solutions:

Question: Is it possible for bizcharts to work with React version ^18 without disabling StrictMode?

Thank you in advance for your assistance!

iYogic commented 4 months ago

Me too!!!

image