Is ClientDataFunctionArgs context typing incorrect? #13715
Unanswered
andrewjroberts
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey @ mainly maintainers,
I was trying to unit test my route clientLoaders, e.g.
And I noticed the context type is required, even though the comment above the property says it should be undefined if the
future.unstable_middlewareis not enabled:In the ServerDataFunctionArgs, it's conditional on MiddlewareEnabled:
I know @brophdawg11 you just landed a PR for the createRoutesStub types, is this related to the ongoing issues faced?
react-router/packages/react-router/lib/types/route-module-annotations.ts
Line 70 in c06ec85
Beta Was this translation helpful? Give feedback.
All reactions