Skip to content

Commit 0615b45

Browse files
committed
Fix lint issue
1 parent 2ecc0da commit 0615b45

File tree

2 files changed

+10
-15
lines changed

2 files changed

+10
-15
lines changed

packages/react-router/lib/components.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,16 @@ import { warnOnce } from "./server-runtime/warnings";
7272
import 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+
*/
8585
const USE_OPTIMISTIC = "useOptimistic";
8686
// @ts-expect-error Needs React 19 types but we develop against 18
8787
const useOptimisticImpl = React[USE_OPTIMISTIC];

playground/react-transitions/app/routes/transitions.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,6 @@ export default function Transitions() {
160160
<li>
161161
Should not re-fallback when going from parent -&gt; 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>

0 commit comments

Comments
 (0)