Skip to content

Remote form function with data-sveltekit-preload-data="hover" setting is breaking navigation #15061

@harishkswamy

Description

@harishkswamy

Describe the bug

A simple two route app with remote form functions and the data-sveltekit-preload-data set to "hover" breaks the browser hyperlink navigation between the two routes.

Reproduction

Here's StackBlitz repo https://stackblitz.com/edit/sveltejs-kit-template-default-uxxqzawj?file=src%2Froutes%2F%2Bpage.svelte

Navigate to "Login" -> "Register" -> "Login"

You will find that the URL switches to /auth/login but the page does not to refresh. If I force refresh the browser once and then use the links it seems to be working. Also, notice that this only works if I set the data-sveltekit-preload-data="off" on the links.

Logs

System Info

"@sveltejs/kit": "^2.49.1"
"svelte": "^5.45.6"
Browser: Chrome Version 143.0.7499.41 (Official Build) (arm64)

Severity

serious, but I can work around it

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions