Skip to content

[WC-3245]: Custom Chart conditional visibility#2058

Open
rahmanunver wants to merge 4 commits intomainfrom
wc-3245_customcharts_conditional_visibility_bug
Open

[WC-3245]: Custom Chart conditional visibility#2058
rahmanunver wants to merge 4 commits intomainfrom
wc-3245_customcharts_conditional_visibility_bug

Conversation

@rahmanunver
Copy link
Contributor

@rahmanunver rahmanunver commented Feb 3, 2026

Pull request type

Bug fix (non-breaking change which fixes an issue)


Description

Due to conditional visibility preventing rendering multiple times on data change (usually dataLength=0 -> dataLength=2 - and so on, with conditional visibility this doesn't happen), the custom chart is preserving the stale data.

This fix introduces a new resetData usage and trigger update on EditorStore with the fresh data.

What should be covered while testing?

Check if custom charts with conditional visibility are refreshing data as excpected also playground.
Other charts also should work as expected as these changes involve shared store state code.

@rahmanunver rahmanunver requested a review from a team as a code owner February 3, 2026 15:40
@rahmanunver rahmanunver force-pushed the wc-3245_customcharts_conditional_visibility_bug branch 2 times, most recently from 0f16ee4 to 0fc3e52 Compare February 5, 2026 15:00
@rahmanunver rahmanunver force-pushed the wc-3245_customcharts_conditional_visibility_bug branch from 0fc3e52 to 4cd9e10 Compare February 5, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant