Skip to content

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

@emnetdev

Description

@emnetdev

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:

  • After stopping the application and changing reactStrictMode: false in next.config.js, the charts render correctly.
  • Tested changing react-reconciler to version 0.29.0.
  • The project was also tested with installation via yarn.

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

Thank you in advance for your assistance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions