Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: unwanted re-rendering of dashboard items #2247

Merged
merged 2 commits into from
Mar 15, 2023
Merged

Conversation

edoardo
Copy link
Member

@edoardo edoardo commented Mar 15, 2023

This should fix most unwanted re-rendering of dashboard items.

It's basically reverting a change where style was passed to the plugin props.

(It was added to solve an issue in DV where charts where cutoff which has been fixed in a different way here.)

edoardo added 2 commits March 15, 2023 16:03
This is basically reverting a change I added to solve a DV Highchart's
cutoff issue.
I think I found another approach for that issue which does not require
to pass style to the plugin, which is a problem because of course it
changes any time the dashboard item container changes size (window
resize, resize of other dashboard items, interpretation panel toggle,
etc...).
@edoardo edoardo requested a review from jenniferarnesen March 15, 2023 15:26
@dhis2-bot
Copy link
Contributor

🚀 Deployed on https://pr-2247--dhis2-dashboard.netlify.app

@dhis2-bot dhis2-bot temporarily deployed to netlify March 15, 2023 15:29 Inactive
@edoardo edoardo merged commit b02714a into master Mar 15, 2023
@edoardo edoardo deleted the fix/items-re-renders branch March 15, 2023 16:00
dhis2-bot added a commit that referenced this pull request Mar 15, 2023
## [99.10.17](v99.10.16...v99.10.17) (2023-03-15)

### Bug Fixes

* close TranslationDialog after saving a translation ([#2245](#2245)) ([295acb3](295acb3))
* unwanted re-rendering of dashboard items ([#2247](#2247)) ([b02714a](b02714a))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 99.10.17 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

janhenrikoverland pushed a commit that referenced this pull request Mar 17, 2023
* fix: solve most unwanted re-renders of dashboard items

This is basically reverting a change I added to solve a DV Highchart's
cutoff issue.
I think I found another approach for that issue which does not require
to pass style to the plugin, which is a problem because of course it
changes any time the dashboard item container changes size (window
resize, resize of other dashboard items, interpretation panel toggle,
etc...).

* chore: bump cli-app-scripts to solve no-service-worker issue
jenniferarnesen pushed a commit that referenced this pull request Mar 22, 2023
* fix: solve most unwanted re-renders of dashboard items

This is basically reverting a change I added to solve a DV Highchart's
cutoff issue.
I think I found another approach for that issue which does not require
to pass style to the plugin, which is a problem because of course it
changes any time the dashboard item container changes size (window
resize, resize of other dashboard items, interpretation panel toggle,
etc...).

* chore: bump cli-app-scripts to solve no-service-worker issue
jenniferarnesen pushed a commit that referenced this pull request Mar 22, 2023
* fix: solve most unwanted re-renders of dashboard items

This is basically reverting a change I added to solve a DV Highchart's
cutoff issue.
I think I found another approach for that issue which does not require
to pass style to the plugin, which is a problem because of course it
changes any time the dashboard item container changes size (window
resize, resize of other dashboard items, interpretation panel toggle,
etc...).

* chore: bump cli-app-scripts to solve no-service-worker issue
jenniferarnesen added a commit that referenced this pull request Mar 22, 2023
…v40] (#2266)

* fix: unwanted re-rendering of dashboard items (#2247)

* fix: solve most unwanted re-renders of dashboard items

This is basically reverting a change I added to solve a DV Highchart's
cutoff issue.
I think I found another approach for that issue which does not require
to pass style to the plugin, which is a problem because of course it
changes any time the dashboard item container changes size (window
resize, resize of other dashboard items, interpretation panel toggle,
etc...).

* chore: bump cli-app-scripts to solve no-service-worker issue

* fix: avoid sending props twice when using View as and plugin changes (#2248)

* fix: use chrome in e2e tests

---------

Co-authored-by: Edoardo Sabadelli <[email protected]>
jenniferarnesen added a commit that referenced this pull request Mar 23, 2023
…ch/2.40.0] (#2267)

* fix: unwanted re-rendering of dashboard items (#2247)

* fix: solve most unwanted re-renders of dashboard items

This is basically reverting a change I added to solve a DV Highchart's
cutoff issue.
I think I found another approach for that issue which does not require
to pass style to the plugin, which is a problem because of course it
changes any time the dashboard item container changes size (window
resize, resize of other dashboard items, interpretation panel toggle,
etc...).

* chore: bump cli-app-scripts to solve no-service-worker issue

* fix: avoid sending props twice when using View as and plugin changes (#2248)

---------

Co-authored-by: Edoardo Sabadelli <[email protected]>
Co-authored-by: Jan Henrik Øverland <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants