svelte state_referenced_locally warning fixes

- change to derived where possible
- suppress warning elsewhere
- discussion here: sveltejs/svelte/issues/17289
This commit is contained in:
Christoph Kluge
2026-01-15 18:17:45 +01:00
parent cd3d133f0d
commit faacf3f343
41 changed files with 167 additions and 127 deletions

View File

@@ -44,7 +44,6 @@
const durationBinOptions = ["1m","10m","1h","6h","12h"];
/* State Init */
let cluster = $state(presetCluster)
let pagingState = $state({page: 1, itemsPerPage: 10}) // Top 10
let selectedHistograms = $state([]) // Dummy For Refresh
let colWidthJobs = $state(0);
@@ -53,6 +52,7 @@
let numDurationBins = $state("1h");
/* Derived */
let cluster = $derived(presetCluster)
const topJobsQuery = $derived(queryStore({
client: client,
query: gql`