Repository navigation
fix: rerun load functions when the number of values of a tracked search parameter changes - #16495
Conversation
…ch parameter changes
commented
Jul 23, 2026
|
Install the latest version of pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/b1c5b9918c1d91aea3a293283c573ba656252d46Open in Note This PR is from a fork. A maintainer must approve approve each commit before it can be built and installed. |
commented
Jul 23, 2026
🦋 Changeset detectedLatest commit: b1c5b99 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
commented
Aug 12, 2026
|
#16684 added |
Since #11258,
diff_search_paramscompares each key's values as a set, so navigating from?x=a&x=ato?x=ais treated as unchanged and load functions trackingxdon't rerun. Comparing the sorted value lists instead catches count changes, still treats reordering as unchanged, and is O(V log V) rather than O(V²).Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
Tests
pnpm testand lint the project withpnpm lintandpnpm checkChangesets
pnpm changesetand following the prompts. All changesets should bepatchuntil SvelteKit 2.0 (major releases only that fix regressions)Edits