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

* Clear cache when LogsNavigation is mounted

* Update docs
pull/45614/head
Piotr Jamróz 4 years ago committed by GitHub
parent 8e6626664f
commit 25f155a44d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      public/app/features/explore/LogsNavigation.tsx

@ -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
}, []);

Loading…
Cancel
Save