Skip to content

Commit 6dac8de

Browse files
authored
Wrap internal router state updates with React.startTransition (#10438)
1 parent 86f7206 commit 6dac8de

File tree

7 files changed

+467
-19
lines changed

7 files changed

+467
-19
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"react-router": minor
3+
"react-router-dom": minor
4+
---
5+
6+
Wrap internal router state updates with `React.startTransition` if it exists

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,16 +108,16 @@
108108
"none": "45 kB"
109109
},
110110
"packages/react-router/dist/react-router.production.min.js": {
111-
"none": "13.3 kB"
111+
"none": "13.4 kB"
112112
},
113113
"packages/react-router/dist/umd/react-router.production.min.js": {
114-
"none": "15.6 kB"
114+
"none": "15.8 kB"
115115
},
116116
"packages/react-router-dom/dist/react-router-dom.production.min.js": {
117-
"none": "11.8 kB"
117+
"none": "12.0 kB"
118118
},
119119
"packages/react-router-dom/dist/umd/react-router-dom.production.min.js": {
120-
"none": "17.7 kB"
120+
"none": "17.9 kB"
121121
}
122122
}
123123
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import * as React from "react";
2+
3+
export default function LazyComponent() {
4+
return <h1>Lazy</h1>;
5+
}

0 commit comments

Comments
 (0)