You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
timbarclay
changed the title
UseEffect causes chart not to render initially
State change causes chart not to render initially
Nov 26, 2024
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
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
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.
The text was updated successfully, but these errors were encountered: