This demo shows how to call a load function with new query parameters, triggering invalidate only when necessary to avoid duplicate calls.
It also provides a good example of how data dependency works.
Check the /routes/+layout.svelte and /routes/report/type/line/+page.svelte files.