Skip to content

[solid-start] Browser hangs when navigating on mount in v1.159.1 and forward #6672

@jakst

Description

@jakst

Which project does this relate to?

Start

Describe the bug

Doing a navigate on mount causes the page to hang (at least in chrome) on v1.159.1 and foward (tested up to v1.160.0)

These two factors made it reproduce reliably:

  • Running the app under a basepath
  • Having a <Link> component mounted on the page

I could reproduce it under some other circumstances as well (basepath wasn't required for all of them for example), but this was the most minimal version I could break it down into.

Your Example Website or App

https://github.com/jakst/tss-redirect-in-effect-hang

Steps to Reproduce the Bug or Issue

  1. Checkout repo => pnpm install => pnpm dev
  2. Open http://localhost:3000/
  3. Notice the browser tab hangs and displays the / route, while the URL has changed to the /b route

Expected behavior

I expect the router to redirect without causing what I believe to be infinite loops, causing the browser to hang.

Screenshots or Videos

No response

Platform

  • Router / Start Version: 1.159.1
  • OS: MacOS
  • Browser: Chrome
  • Browser Version: 145
  • Bundler: vite
  • Bundler Version: 7.3.1

Additional context

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