-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Description
If state is updated in useEffect, the initial render of the chart fails to happen.
Link to Reproduction
https://stackblitz.com/edit/stackblitz-starters-21kxf1?file=app%2Fpage.tsx
Steps to reproduce
- Go to https://stackblitz.com/edit/stackblitz-starters-21kxf1?file=app%2Fpage.tsx
- Click on "Show chart"
- Note that no chart appears
- If you toggle "Show chart" off and on again it does show
If you comment out the useEffect call, the issue does not happen.
JS Framework
Nextjs (TS)
Version
1.4.0
Browser
Chrome 131
Operating System
- macOS
- Windows
- Linux
Additional Information
This may be related to #37 since that error is logged in the console, but this seems like a more serious because it prevents the chart appearing at all to begin with.
sergioisidoro
Metadata
Metadata
Assignees
Labels
No labels