Skip to content

Commit 084d42f

Browse files
authoredApr 2, 2025··
fix(react-router): missing Symbol declaration for HMR in root route (#3923)
Similar to #3821, the React Symbol declaration was missing on the `RootRoute` class. fixes #3917
1 parent f8015e7 commit 084d42f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

Diff for: ‎packages/react-router/src/route.ts

+1
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ export class RootRoute<
378378
>,
379379
) {
380380
super(options)
381+
;(this as any).$$typeof = Symbol.for('react.memo')
381382
}
382383

383384
useMatch: UseMatchRoute<RootRouteId> = (opts) => {

0 commit comments

Comments
 (0)
Please sign in to comment.