Skip to content

RootRoute pendingComponent after "lane match loader rewrite" always visible #7958

Description

@codeart1st

Which project does this relate to?

Router

Describe the bug

Before the latest "lane match loader rewrite" the pendingComponent from the RootRoute was only visible in the first load of the SPA. It was not visible during route transitions after the initial application load.
After the rewrite it's not possible anymore to have a initial pendingComponent, but not use it afterwards.

Complete minimal reproducer

https://stackblitz.com/edit/github-s5suhk5r-9udezxgo?file=src%2Froutes%2F__root.tsx

Steps to Reproduce the Bug

  1. The blue pendingComponent from index.html is shown
  2. The blue RootRoute pendingComponent is shown
  3. The start page is shown
  4. Navigating to the "About" page
  5. The RootRoute pendingComponent is shown again

Expected behavior

The pendingComponent of the RootRoute is shown only once during initial SPA load.

Screenshots or Videos

No response

Platform

  • Router / Start Version: @tanstack/react-router@1.170.19

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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