impr: fix load() invalidation such that phtn.app/__data.json isn't repeatedly fetched

This commit is contained in:
Xylight committed 2026-02-12 20:44:15 -08:00
1 parent 238583b3a6
commit ee7c097f80
2 files changed
+6 -5

No files matched your search

+3 -4
View File
@@ -15,16 +15,15 @@ export const findClosestNumber = (numbers: number[], target: number): number =>
)
export const searchParam = (
url: URL,
_url: URL,
key: string,
value: string,
...deleteKeys: string[]
) => {
const url = new SvelteURL(_url)
url.searchParams.set(key, value)
deleteKeys.forEach((k) => url.searchParams.delete(k))
goto(url, {
invalidateAll: true,
})
goto(url)
}
// why is this using SvelteURL brother