You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[`StaticHandlerContext`](https://api.reactrouter.com/v7/interfaces/react_router.StaticHandlerContext.html) value you get back from [`StaticHandler`](https://api.reactrouter.com/v7/interfaces/react_router.StaticHandler.html)'s
268
+
[`StaticHandlerContext`](https://api.reactrouter.com/v7/interfaces/react_router.StaticHandlerContext.html) value you get back from the [`StaticHandler`](https://api.reactrouter.com/v7/interfaces/react_router.StaticHandler.html)'s
[`StaticHandlerContext`](https://api.reactrouter.com/v7/interfaces/react_router.StaticHandlerContext.html) value you get back from [`StaticHandler`](https://api.reactrouter.com/v7/interfaces/react_router.StaticHandler.html)'s
81
+
[`StaticHandlerContext`](https://api.reactrouter.com/v7/interfaces/react_router.StaticHandlerContext.html) value you get back from the [`StaticHandler`](https://api.reactrouter.com/v7/interfaces/react_router.StaticHandler.html)'s
Creates a type-safe [`unstable_RouterContext`](https://api.reactrouter.com/v7/interfaces/react_router.unstable_RouterContext.html) object that can be used to
34
-
* store and retrieve arbitrary values in [`action`](../../start/framework/route-module#action)s,
35
-
*[`loader`](../../start/framework/route-module#loader)s, and [middleware](../../how-to/middleware).
36
-
* Similar to React's [`createContext`](https://react.dev/reference/react/createContext),
37
-
* but specifically designed for React Router's request/response lifecycle.
38
-
39
-
<docs-warning>Enable this API with the `future.unstable_middleware` flag.</docs-warning>
34
+
store and retrieve arbitrary values in [`action`](../../start/framework/route-module#action)s,
35
+
[`loader`](../../start/framework/route-module#loader)s, and [middleware](../../how-to/middleware).
36
+
Similar to React's [`createContext`](https://react.dev/reference/react/createContext),
37
+
but specifically designed for React Router's request/response lifecycle.
40
38
41
39
If a `defaultValue` is provided, it will be returned from `context.get()`
42
40
when no value has been set for the context. Otherwise, reading this context
0 commit comments