The type definition of the context
property of ClientDataFunctionArgs
would need to be fixed.
#13550
Labels
context
property of ClientDataFunctionArgs
would need to be fixed.
#13550
I'm using React Router as a...
framework
Reproduction
The following code declares
react-router.config.ts
in my project.In this case, the type
ClientDataFunction
must returncontext: undefined
because such behaviour is commented out bypackages/react-router/lib/types/route-module.ts
. However, it actually returnsunstable_RouterContextProvider
.react-router/packages/react-router/lib/types/route-module.ts
Lines 144 to 152 in ff67b74
System Info
Used Package Manager
npm
Expected Behavior
When I declare
unstable_middleware: false
inreact-router.config.ts
, thecontext
property ofClientDataFunctionArgs
must returncontext: undefined
.Actual Behavior
It returns
context: unstable_RouterContextProvider
.The text was updated successfully, but these errors were encountered: