-
Hi community! I'm attempting to use the new type-safe routing features in the react-router v7 prereleases. I'd like to use the I haven't been able to figure out a way to augment the type of the import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
declare module 'react-router' {
interface AppLoadContext {
client: ApolloClient<NormalizedCacheObject>;
}
} And indeed, when I inspect the type of the Has anyone managed to make this work? If so, I'd love to hear how you did it. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I had this issue on |
Beta Was this translation helpful? Give feedback.
-
I understand this issue is about the AppLoadContext type, but can someone share how do you actually augment the context object at runtime? I'm struggling to find it without dropping down to a custom server. |
Beta Was this translation helpful? Give feedback.
I had this issue on
7.0.0-pre.5
, but if you upgrade to7.0.0-pre.6
it works again, seems they fixed it somehow.