mirror of
https://github.com/grafana/grafana.git
synced 2025-01-07 22:53:56 -06:00
Explore: Fix closing split pane when logs panel is used (#45602)
* Clear cache when LogsNavigation is mounted * Update docs
This commit is contained in:
parent
8e6626664f
commit
25f155a44d
@ -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…
Reference in New Issue
Block a user