Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.9] [dashboard] fix Memory leak when reset causes by-value panel to…
… be deleted (#161394) (#161467) # Backport This will backport the following commits from `main` to `8.9`: - [[dashboard] fix Memory leak when reset causes by-value panel to be deleted (#161394)](#161394) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Nathan Reese","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-07-07T14:53:50Z","message":"[dashboard] fix Memory leak when reset causes by-value panel to be deleted (#161394)\n\nCloses https://github.com/elastic/kibana/issues/161310\r\n\r\nIssue caused by `setState` call after async action without checking that\r\ncomponent is still mounted. Resolved issue by checking component is\r\nmounted after any async action or subscription.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"d9c0c554f8e54068c5fd8d0c27094f0d04c6dac3","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Embedding","Team:Presentation","release_note:skip","v8.9.0","v8.10.0","Feature:Embeddables"],"number":161394,"url":"https://github.com/elastic/kibana/pull/161394","mergeCommit":{"message":"[dashboard] fix Memory leak when reset causes by-value panel to be deleted (#161394)\n\nCloses https://github.com/elastic/kibana/issues/161310\r\n\r\nIssue caused by `setState` call after async action without checking that\r\ncomponent is still mounted. Resolved issue by checking component is\r\nmounted after any async action or subscription.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"d9c0c554f8e54068c5fd8d0c27094f0d04c6dac3"}},"sourceBranch":"main","suggestedTargetBranches":["8.9"],"targetPullRequestStates":[{"branch":"8.9","label":"v8.9.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.10.0","labelRegex":"^v8.10.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/161394","number":161394,"mergeCommit":{"message":"[dashboard] fix Memory leak when reset causes by-value panel to be deleted (#161394)\n\nCloses https://github.com/elastic/kibana/issues/161310\r\n\r\nIssue caused by `setState` call after async action without checking that\r\ncomponent is still mounted. Resolved issue by checking component is\r\nmounted after any async action or subscription.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"d9c0c554f8e54068c5fd8d0c27094f0d04c6dac3"}}]}] BACKPORT--> Co-authored-by: Nathan Reese <[email protected]>
- Loading branch information