Skip to content
Source
Sign inSign up
TanStack/router

fix(react-router): on initial load the `router.state.status` does not transition to "idle" #1559

MergedSeanCassieremerged 15 commits intomain fromrefs/pull/1559/headmerged by SeanCassiere

SeanCassierecommented

On the initial load, the router's status does not transition back to "idle". This was working correctly prior to the 1.28.8 release.

Turns out, that the usePrevious hook used by the <RouterProvider>, wasn't actually storing the previous value so the conditions for firing the events were never met during the initial load.

Fixes #1552

    1. ☁️ Nx Cloud Report

      CI is running/has finished running commands for commit ce3248c7f0b11d61e465b337777589485a093265. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

      📂 See all runs for this CI Pipeline Execution


      ✅ Successfully ran 2 targets

    2. Sent with 💌 from NxCloud.

  • Tanner mentioned this should be done in the router events and its possibly an event that's not firing correctly.

  • SeanCassiere merged thisfc2859d

  • SeanCassiere closed this

  • Sign in to join this conversation.