Skip to content

useNavigation remains idle when the navigation is held up by Suspense #14695

@SunsetFi

Description

@SunsetFi

Reproduction

https://github.com/SunsetFi/react-router-data-no-suspense-loading

System Info

System:
    OS: Linux 6.18 Arch Linux
    CPU: (16) x64 AMD Ryzen 7 7840HS w/ Radeon 780M Graphics
    Memory: 11.74 GB / 30.65 GB
    Container: Yes
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 24.12.0 - /home/sunset/.nvm/versions/node/v24.12.0/bin/node
    npm: 11.6.2 - /home/sunset/.nvm/versions/node/v24.12.0/bin/npm
    pnpm: 10.17.1 - /home/sunset/.local/share/pnpm/pnpm
  Browsers:
    Chromium: 143.0.7499.169
    Firefox: 146.0.1
    Firefox Developer Edition: 146.0.1
  npmPackages:
    react-router: ^7.11.0 => 7.11.0 
    vite: ^7.3.0 => 7.3.0

Used Package Manager

pnpm

Expected Behavior

useNavigation should indicate an ongoing navigation while a navigation is pending with Suspense.

Actual Behavior

useNavigation().state stays at "idle" even while a navigation is pending due to Suspense / React.use().

It's worth noting that placing useNavigation() in a component causes that component to re-render several times through the lifecycle of the naviation. However, the values it returns never change through that time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions