mirror of
https://github.com/halo-dev/halo.git
synced 2025-12-20 16:44:38 +08:00
refactor: enable dashboard widgets query cache (#7520)
#### What type of PR is this? /kind improvement /area ui /milestone 2.21.x #### What this PR does / why we need it: Enable query cache for dashboard widgets. #### Does this PR introduce a user-facing change? ```release-note None ```
This commit is contained in:
@@ -254,6 +254,10 @@ async function handleSave() {
|
||||
await queryClient.invalidateQueries({
|
||||
queryKey: ["core:dashboard:widgets"],
|
||||
});
|
||||
|
||||
await queryClient.invalidateQueries({
|
||||
queryKey: ["core:dashboard:widgets:view"],
|
||||
});
|
||||
} catch (error) {
|
||||
console.error("Failed to save dashboard widgets config", error);
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user