Skip to content

Commit 4be9ed7

Browse files
committed
Update release notes
1 parent 2a17666 commit 4be9ed7

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

CHANGELOG.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -391,19 +391,19 @@ For more information, check out the [blog post](https://remix.run/blog/react-rou
391391
- We've reverted this change and re-implemented it in such a way that both sets of users can leverage it
392392
- ⚠️ This may be a breaking bug for if you have adopted the unstable Middleware feature and are using `createRoutesStub` with the updated API.
393393

394-
```tsx
395-
// If you have not opted into middleware, the old API should work again
396-
let context: AppLoadContext = {
397-
/*...*/
398-
};
399-
let Stub = createRoutesStub(routes, context);
400-
401-
// If you have opted into middleware, you should now pass an instantiated
402-
// `unstable_routerContextProvider` instead of a `getContext` factory function.
403-
let context = new unstable_RouterContextProvider();
404-
context.set(SomeContext, someValue);
405-
let Stub = createRoutesStub(routes, context);
406-
```
394+
```tsx
395+
// If you have not opted into middleware, the old API should work again
396+
let context: AppLoadContext = {
397+
/*...*/
398+
};
399+
let Stub = createRoutesStub(routes, context);
400+
401+
// If you have opted into middleware, you should now pass an instantiated
402+
// `unstable_routerContextProvider` instead of a `getContext` factory function.
403+
let context = new unstable_RouterContextProvider();
404+
context.set(SomeContext, someValue);
405+
let Stub = createRoutesStub(routes, context);
406+
```
407407

408408
- `@react-router/dev` - Update `vite-node` to `^3.2.2` to support Vite 7 ([#13781](https://github.com/remix-run/react-router/pull/13781))
409409
- `@react-router/dev` - Properly handle `https` protocol in dev mode ([#13746](https://github.com/remix-run/react-router/pull/13746))

0 commit comments

Comments
 (0)