Skip to content

Active Link css transition flickering #6041

@idonotknowwhoiam

Description

@idonotknowwhoiam

Which project does this relate to?

Router

Describe the bug

When styling the active link with a color transition, the previously active link is occasionally styled incorrectly. It briefly flickers with the previous colors for less than a second. This happens rarely (maybe 1 in 30 navigations). I’m not sure whether the bug is caused by the tanstack router or by CSS itself.

Your Example Website or App

https://github.com/idonotknowwhoiam/tanstackrouter-repro

Steps to Reproduce the Bug or Issue

  1. Clone the repository.
  2. Start the server (dev/preview).
  3. Navigate between pages, occasionally refreshing the browser (this may or may not influence the issue idk).

Expected behavior

The active link should switch styles without any flickering.

Screenshots or Videos

Screen.Recording.2025-12-08.at.04.58.37.mov

Platform

  • Router / Start Version: 1.139.12
  • OS: macOS
  • Browser: Chrome, Arc
  • Browser Version: 142.0.7444.177
  • Bundler: Vite
  • Bundler Version: 7.1.7

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