Explore: Fix closing split pane when logs panel is used (#45602)

* Clear cache when LogsNavigation is mounted

* Update docs
This commit is contained in:
Piotr Jamróz
2022-02-18 15:34:19 +01:00
committed by GitHub
parent 8e6626664f
commit 25f155a44d

View File

@@ -81,8 +81,8 @@ function LogsNavigation({
}, [visibleRange, absoluteRange, logsSortOrder, queries, clearCache, addResultsToCache]);
useEffect(() => {
return () => clearCache();
// We can't enforce the eslint rule here because we only want to run when component unmounts.
clearCache();
// We can't enforce the eslint rule here because we only want to run when component is mounted.
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);