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 dev-10575 dev-10566 performance improvement #1961

Merged
merged 1 commit into from
Mar 8, 2025

Conversation

joshlacey
Copy link
Collaborator

[Replace With Ticket Number]

Testing Steps

The tests in the tickets will ultimately need to be run on wp-test. There were some issues with long load times with the apis which surfaced some state logic issues after the data responses set new states but user navigated away from the current action.

Additionally, I noticed that there was a performance delay on some of the apps due to JSON.stringify(JSON.parse(config)) when used in the dashboard. Multiple visualizations were using this and all together it was causing the app to be slow when switching between tabs.

Self Review

  • I have added testing steps for reviewers
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • New and existing unit tests are passing

Screenshots (if applicable)

Additional Notes

@joshlacey joshlacey added this to the 4.25.3 milestone Feb 25, 2025
@@ -93,7 +108,7 @@ const EditorPanel = memo(props => {
}

const convertStateToConfig = () => {
let strippedState = JSON.parse(JSON.stringify(config))
let strippedState = _.cloneDeep(config)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only code change, everything else is formatter

@adamdoe adamdoe merged commit 9e6a455 into dev Mar 8, 2025
1 check passed
@adamdoe adamdoe deleted the fix/dev-10575-dev-10566-performance-improvement branch March 8, 2025 03:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants