Skip to content

onRenderChange not called on chart resize #2221

@drewdaemon

Description

@drewdaemon

Describe the issue
When a chart is resized with no configuration changes, onRenderChange fails to fire leaving no way for a consumer to detect the rerender.

To Reproduce
Steps to reproduce the behavior:

  1. Create a chart and instrument onRenderChange with a console statement
  2. Resize the chart canvas (resizing the browser works)

See https://codesandbox.io/s/focused-rubin-n6s97f?file=/src/App.tsx

The chart resizes, but the onRenderChange isn't called.

Screen.Recording.2023-11-02.at.10.31.09.AM.mp4

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions