mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
fixed refetch on window focus
This commit is contained in:
parent
ee1e6d31ab
commit
5e34c41bd7
1 changed files with 3 additions and 0 deletions
|
|
@ -110,6 +110,8 @@ export function ReportingClientArea({
|
|||
hideNonCompliant: appliedHideNonCompliant,
|
||||
}),
|
||||
enabled: !!selectedScenarioId, // only run when scenario selected
|
||||
keepPreviousData: true, // keep showing old data while loading new scenario or applying filter
|
||||
refetchOnWindowFocus: false,
|
||||
});
|
||||
|
||||
const {
|
||||
|
|
@ -125,6 +127,7 @@ export function ReportingClientArea({
|
|||
}),
|
||||
enabled: measuresOpen && !!selectedScenarioId,
|
||||
keepPreviousData: true,
|
||||
refetchOnWindowFocus: false,
|
||||
});
|
||||
|
||||
// ----------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue