Skip to content

RR7 complains "No HydrationFallback element provided ..." for CSR-only config (using Custom Framework) #12687

Closed
@rolanday

Description

@rolanday
Screenshot 2025-01-03 at 9 09 13 PM ### I'm using React Router as a...

framework

Reproduction

https://codesandbox.io/p/github/rolanday/rr7-csr-hydration-warning/main?import=true
or
https://github.com/rolanday/rr7-csr-hydration-warning

To repro, simply run in dev mode and note the browser console output (or see attached screenshot).

System Info

System:
    OS: macOS 14.7.1
    CPU: (24) arm64 Apple M2 Ultra
    Memory: 426.23 MB / 128.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 23.1.0 - /opt/homebrew/bin/node
    npm: 10.9.0 - /opt/homebrew/bin/npm
    pnpm: 9.14.2 - /opt/homebrew/bin/pnpm
  Browsers:
    Chrome: 131.0.6778.205
    Safari: 17.6
  npmPackages:
    react-router: ^7.1.1 => 7.1.1 
    vite: ^6.0.5 => 6.0.7

Used Package Manager

pnpm

Expected Behavior

As this is a custom framework config (with no SSR option), the hydration warning message is unexpected (i.e., expecting to see no such warning).

Actual Behavior

A hydration warning is issued for a CSR only configuration.

Edit: Attached Screenshot

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