Skip to content

Commit 947157f

Browse files
chore(react-router): remove leftover remix references (#12544)
* chore: remove leftover remix references * chore: signed contributors * Update packages/react-router/lib/dom/ssr/routes-test-stub.tsx Co-authored-by: Michaël De Boey <[email protected]> * Update packages/react-router/lib/dom/ssr/routes-test-stub.tsx Co-authored-by: Michaël De Boey <[email protected]> * Update packages/react-router/lib/dom/ssr/routes-test-stub.tsx Co-authored-by: Michaël De Boey <[email protected]> * Update packages/react-router/lib/dom/ssr/routes-test-stub.tsx Co-authored-by: Michaël De Boey <[email protected]> --------- Co-authored-by: Michaël De Boey <[email protected]>
1 parent 5af7d25 commit 947157f

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

contributors.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,3 +416,4 @@
416416
- zeromask1337
417417
- zheng-chuang
418418
- zxTomw
419+
- AlemTuzlak

packages/react-router/lib/dom/ssr/routes-test-stub.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ export function createRoutesStub(
120120
future,
121121
}: RoutesTestStubProps) {
122122
let routerRef = React.useRef<ReturnType<typeof createMemoryRouter>>();
123-
let remixContextRef = React.useRef<FrameworkContextObject>();
123+
let frameworkContextRef = React.useRef<FrameworkContextObject>();
124124

125125
if (routerRef.current == null) {
126-
remixContextRef.current = {
126+
frameworkContextRef.current = {
127127
future: {
128128
unstable_subResourceIntegrity:
129129
future?.unstable_subResourceIntegrity === true,
@@ -147,8 +147,8 @@ export function createRoutesStub(
147147
// @ts-expect-error `StubRouteObject` is stricter about `loader`/`action`
148148
// types compared to `AgnosticRouteObject`
149149
convertRoutesToDataRoutes(routes, (r) => r),
150-
remixContextRef.current.manifest,
151-
remixContextRef.current.routeModules
150+
frameworkContextRef.current.manifest,
151+
frameworkContextRef.current.routeModules
152152
);
153153
routerRef.current = createMemoryRouter(patched, {
154154
unstable_getContext,
@@ -159,7 +159,7 @@ export function createRoutesStub(
159159
}
160160

161161
return (
162-
<FrameworkContext.Provider value={remixContextRef.current}>
162+
<FrameworkContext.Provider value={frameworkContextRef.current}>
163163
<RouterProvider router={routerRef.current} />
164164
</FrameworkContext.Provider>
165165
);
@@ -175,7 +175,7 @@ function processRoutes(
175175
return routes.map((route) => {
176176
if (!route.id) {
177177
throw new Error(
178-
"Expected a route.id in @remix-run/testing processRoutes() function"
178+
"Expected a route.id in react-router processRoutes() function"
179179
);
180180
}
181181

0 commit comments

Comments
 (0)