@@ -391,19 +391,19 @@ For more information, check out the [blog post](https://remix.run/blog/react-rou
391
391
- We've reverted this change and re-implemented it in such a way that both sets of users can leverage it
392
392
- ⚠️ This may be a breaking bug for if you have adopted the unstable Middleware feature and are using `createRoutesStub` with the updated API.
393
393
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
+ ```
407
407
408
408
- `@react-router/dev` - Update `vite-node` to `^3.2.2` to support Vite 7 ([#13781](https://github.com/remix-run/react-router/pull/13781))
409
409
- `@react-router/dev` - Properly handle `https` protocol in dev mode ([#13746](https://github.com/remix-run/react-router/pull/13746))
0 commit comments