fix: dashboard cache issue with websocket (#5725)

- panel response not cached for dashboard panel.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
	- Enhanced state caching mechanism when closing search operations
	- Improved data retrieval efficiency by preserving panel state in cache

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Abhay Padamani
2025-01-16 19:47:02 +05:30
committed by GitHub
parent bb66e051c9
commit db02108d4e
@@ -710,6 +710,9 @@ export const usePanelDataLoader = (
// set loading to false
state.loading = false;
state.isOperationCancelled = false;
// save current state to cache
saveCurrentStateToCache();
};
const handleSearchError = (