-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Closed as not planned
Labels
Description
Reproduction
Like the title suggest createMemoryRouter does not support patchRoutesOnNavigation unlike createBrowserRouter and this makes writing tests involving lazy loaded routes difficult.
System Info
System:
OS: macOS 15.6.1
CPU: (12) arm64 Apple M3 Pro
Memory: 398.98 MB / 36.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.12.2 - ~/.nvm/versions/node/v20.12.2/bin/node
npm: 10.5.0 - ~/.nvm/versions/node/v20.12.2/bin/npm
pnpm: 10.2.1 - ~/Library/pnpm/pnpm
bun: 1.2.20 - /opt/homebrew/bin/bun
Browsers:
Chrome: 139.0.7258.139
Safari: 18.6
npmPackages:
vite: 5.0.11
react-router-dom: 6.30.1Used Package Manager
pnpm
Expected Behavior
createBrowserRouter should support patchRoutesOnNavigation
Actual Behavior
createBrowserRouter does not support patchRoutesOnNavigation