File tree Expand file tree Collapse file tree 2 files changed +10
-15
lines changed
packages/react-router/lib
playground/react-transitions/app/routes Expand file tree Collapse file tree 2 files changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -72,16 +72,16 @@ import { warnOnce } from "./server-runtime/warnings";
7272import type { unstable_ClientInstrumentation } from "./router/instrumentation" ;
7373
7474/**
75- Webpack can fail to compile on against react versions without this export
76- complains that `startTransition` doesn't exist in `React`.
77-
78- Using the string constant directly at runtime fixes the webpack build issue
79- but can result in terser stripping the actual call at minification time.
80-
81- Grabbing an exported reference once up front resolves that issue.
82-
83- See https://github.com/remix-run/react-router/issues/10579
84- */
75+ * Webpack can fail to compile on against react versions without this export
76+ * complains that `startTransition` doesn't exist in `React`.
77+ *
78+ * Using the string constant directly at runtime fixes the webpack build issue
79+ * but can result in terser stripping the actual call at minification time.
80+ *
81+ * Grabbing an exported reference once up front resolves that issue.
82+ *
83+ * See https://github.com/remix-run/react-router/issues/10579
84+ */
8585const USE_OPTIMISTIC = "useOptimistic" ;
8686// @ts -expect-error Needs React 19 types but we develop against 18
8787const useOptimisticImpl = React [ USE_OPTIMISTIC ] ;
Original file line number Diff line number Diff line change @@ -160,11 +160,6 @@ export default function Transitions() {
160160 < li >
161161 Should not re-fallback when going from parent -> child
162162 </ li >
163- < li >
164- < span style = { { color : "red" } } >
165- But for some reason they are when we enable the flag?
166- </ span >
167- </ li >
168163 < li >
169164 < Link to = "/transitions/parent" > /transitions/parent</ Link >
170165 </ li >
You can’t perform that action at this time.
0 commit comments