Skip to content

Commit 3db3e2c

Browse files
fix(react-router): fix ClientDataFunctionArgs' context (#13552)
1 parent dd3fb69 commit 3db3e2c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

packages/react-router/lib/types/route-module.ts

+3-6
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,9 @@ type ClientDataFunctionArgs<T extends RouteInfo> = {
141141
**/
142142
params: T["params"];
143143
/**
144-
* When `future.unstable_middleware` is not enabled, this is undefined.
145-
*
146-
* When `future.unstable_middleware` is enabled, this is an instance of
147-
* `unstable_RouterContextProvider` and can be used to access context values
148-
* from your route middlewares. You may pass in initial context values in your
149-
* `<HydratedRouter unstable_getContext>` prop
144+
* This is a `RouterContextProvider` instance generated from your router's
145+
* `unstable_getContext` function and/or populated from route middleware
146+
* functions.
150147
*/
151148
context: unstable_RouterContextProvider;
152149
};

0 commit comments

Comments
 (0)