Skip to content

Commit

Permalink
Wrap internal router state updates with React.startTransition (#10438)
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed May 17, 2023
1 parent 86f7206 commit 6dac8de
Show file tree
Hide file tree
Showing 7 changed files with 467 additions and 19 deletions.
6 changes: 6 additions & 0 deletions .changeset/start-transition-support.md
@@ -0,0 +1,6 @@
---
"react-router": minor
"react-router-dom": minor
---

Wrap internal router state updates with `React.startTransition` if it exists
8 changes: 4 additions & 4 deletions package.json
Expand Up @@ -108,16 +108,16 @@
"none": "45 kB"
},
"packages/react-router/dist/react-router.production.min.js": {
"none": "13.3 kB"
"none": "13.4 kB"
},
"packages/react-router/dist/umd/react-router.production.min.js": {
"none": "15.6 kB"
"none": "15.8 kB"
},
"packages/react-router-dom/dist/react-router-dom.production.min.js": {
"none": "11.8 kB"
"none": "12.0 kB"
},
"packages/react-router-dom/dist/umd/react-router-dom.production.min.js": {
"none": "17.7 kB"
"none": "17.9 kB"
}
}
}
@@ -0,0 +1,5 @@
import * as React from "react";

export default function LazyComponent() {
return <h1>Lazy</h1>;
}

0 comments on commit 6dac8de

Please sign in to comment.