Skip to content

Using unstable_instrumentations client-side loses clientLoader.hydrate property #14669

@ingoclaro

Description

@ingoclaro

Reproduction

Go to https://stackblitz.com/edit/github-u6zqfn2f?file=app%2Fentry.client.tsx
and check the project's console logs when loading the website

Then if you comment out the route.instrument function logs show up as expected.

// comment this out in entry.client.tsx
route.instrument({
      async loader(impl, info) {
        console.log('Loader start:', route.id, info.request.url);
        await impl();
        console.log('Loader end:', route.id);
      },
    });

System Info

System:
    OS: macOS 26.2
    CPU: (12) arm64 Apple M2 Pro
    Memory: 4.28 GB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.19.5 - /Users/ingoclaro/.nvm/versions/node/v20.19.5/bin/node
    Yarn: 4.11.0 - /Users/ingoclaro/.nvm/versions/node/v20.19.5/bin/yarn
    npm: 10.8.2 - /Users/ingoclaro/.nvm/versions/node/v20.19.5/bin/npm
    pnpm: 10.26.0 - /Users/ingoclaro/.nvm/versions/node/v20.19.5/bin/pnpm
    Watchman: 2025.10.13.00 - /opt/homebrew/bin/watchman
  Browsers:
    Edge: 143.0.3650.80
    Safari: 26.2
  npmPackages:
    @react-router/dev: 7.10.1 => 7.10.1 
    @react-router/node: 7.10.1 => 7.10.1 
    @react-router/serve: 7.10.1 => 7.10.1 
    react-router: 7.10.1 => 7.10.1 
    vite: ^7.1.7 => 7.2.7

Used Package Manager

npm

Expected Behavior

instrumentations should not affect the behavior of the app and clientLoader should run

Actual Behavior

when adding an instrumentation the clientLoader is not executed, also the instrumentation itself is not executed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions