-
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: 1 comment 1 reply
-
I had this issue on |
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.