-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Closed as not planned
Labels
Description
Reproduction
I'm trying to upgrade react-router-dom from 6.4.2 to 6.30.1 (latest of branch v6).
In version 6.4.2:
import { generatePath } from 'react-router-dom';
generatePath("/book/:id.json", { id: 42 });
// /book/42.json
In version 6.30.1
import { generatePath } from 'react-router-dom';
generatePath("/book/:id.json", { id: 42 });
// /book/:id.json
Is it possible to go back on the original behavior?
System Info
node.js v22.12.0, but it shouldn't matter.Used Package Manager
npm
Expected Behavior
import { generatePath } from 'react-router-dom';
generatePath("/book/:id.json", { id: 42 });
// /book/42.json
Actual Behavior
import { generatePath } from 'react-router-dom';
generatePath("/book/:id.json", { id: 42 });
// /book/:id.json
andi1984-ds