Skip to content

fix: avoid redundant remote query startup ticks - #17494

Draft
svelte-triage-bot[bot] wants to merge 1 commit into
mainfrom
triage/kit-17493-query-start
Draft

svelte-triage-bot[bot] wants to merge 1 commit into
mainfrom
triage/kit-17493-query-start

Conversation

@svelte-triage-bot

Copy link
Copy Markdown
Contributor
  • Query.start() scheduled tick() before checking for an existing promise, so getter reads scheduled rendering work despite request deduplication.
  • Preserve shared instances from #15779 and navigation reset/start ordering from #16014; removing delayed initialization still leaves same-page refreshes stale.
  • Check promise presence with untrack before scheduling, retaining the delayed recheck and Svelte's per-fork/batch state rather than introducing a permanent started flag.
  • Cover all seven accessors for ordinary/batched queries, hydrated and pending reads, failed SSR seeds, explicit refresh, navigation resets and committed/discarded preload forks.

Fixes #17493

@pkg-svelte-dev

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from c13651f:

pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/c13651f19e3e0c50205895794e3120e8f2ef9780

Open in pkg.svelte.dev: https://pkg.svelte.dev/repos/kit/pr/17494

Note

This PR is from a fork. A maintainer must approve approve each commit before it can be built and installed.

@changeset-bot

changeset-bot Bot commented Oct 18, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c13651f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/kit Patch

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

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remote query state getters schedule unnecessary ticks after initialization

0 participants