Skip to content

fix: provide correct url info to remote functions#15418

Merged
teemingc merged 3 commits intomainfrom
fix-remote-function-url
Feb 25, 2026
Merged

fix: provide correct url info to remote functions#15418
teemingc merged 3 commits intomainfrom
fix-remote-function-url

Conversation

@dummdidumm
Copy link
Member

Use page.state, which is backed by signals and therefore fork-aware, to provide the correct url info for the remote function request event.

This can break if you do the query outside of a reactive context, but that is a more general problem where people have to be careful.

Fixes #14921

Use `page.state`, which is backed by signals and therefore fork-aware, to provide the correct url info for the remote function request event.

This _can_ break if you do the query outside of a reactive context, but that is a more general problem where people have to be careful.

Fixes #14921
@changeset-bot
Copy link

changeset-bot bot commented Feb 25, 2026

🦋 Changeset detected

Latest commit: 293a181

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

@svelte-docs-bot
Copy link

@teemingc
Copy link
Member

/ecosystem-ci run

@teemingc teemingc merged commit 8c5048b into main Feb 25, 2026
29 checks passed
@teemingc teemingc deleted the fix-remote-function-url branch February 25, 2026 15:13
@github-actions github-actions bot mentioned this pull request Feb 25, 2026
Copilot AI pushed a commit to Stadly/kit that referenced this pull request Mar 6, 2026
Use `page.state`, which is backed by signals and therefore fork-aware,
to provide the correct url info for the remote function request event.

This _can_ break if you do the query outside of a reactive context, but
that is a more general problem where people have to be careful.

Fixes sveltejs#14921

---------

Co-authored-by: Tee Ming <chewteeming01@gmail.com>
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.

Incorrect URL in preloaded remote function queries

3 participants