solidjs / solidjs/solid-router

Router with view transition api duplicates navigation history sometimes.

Open
#482 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.3k
Forks
180
Avg merge
1d 13h
Merged PRs (30d)
19

Description

Describe the bug

When you click A, B or C route and then hit back navigation sometimes router navigates back to A even thought it should navigate to /. Its kind of rare behavior, so to repro you have try it multiple times. It happens more frequently on Brave browser than Chrome, so I am not sure what to make of it, maybe its some kind browser issue? Especially since on Brave android, sometimes VT api doesn't even trigger sometimes on back navigation. But my another astrojs site doesn't seem to fail on back navigation with vt api, so i can't be sure.

Your Example Website or App

https://github.com/illispi/SolidRouterVTapiIssue

Steps to Reproduce the Bug or Issue
  1. Click A
  2. Click back navigation
  3. repeat on A, B or C until issue occurs.
Expected behavior

Navigate consistently back to correct route.

Screenshots or Videos

No response

Platform
  • Windows 11
  • Chrome and Brave 129
Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the intermittent back-navigation failure in the linked SolidRouterVTapiIssue example on Chrome and Brave, including Brave Android if available. Trace the router's view-transition and history handling while repeating A, B, and C navigation; done means back navigation consistently returns to the correct route, including /.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.