@jerelmiller (cc @phryneas), I would like to make apollo-angular compatible with the latest changes of @apollo/client 4.2 that introduced "classic" and "modern" signatures. However, I am not quite sure how to proceed, and since you contributed very heavily to the new-ish typing structure of apollo-angular during the migration to Apollo v4, I hoped you might have a few advice on the matter ?
More specifically, I don't think we can use the types you introduced such as Apollo.QueryResult (vs ApolloClient.QueryResult) as-is anymore. And instead we should somewhat rely on the the ApolloClient.query.Signature, but I am not sure what would the best way to do that.
I am willing to break everything and make a major release if needed. I am even considering dropping most features, so that apollo-angular becomes an extremely thin wrapper that monkey-patch @apollo/client, in order to rely 100% on @apollo/client types instead of introducing an "extra layer" of types... but hopefully you have better comprehension of @apollo/client and you can guide me toward a saner solution 😅
@jerelmiller (cc @phryneas), I would like to make
apollo-angularcompatible with the latest changes of@apollo/client4.2 that introduced "classic" and "modern" signatures. However, I am not quite sure how to proceed, and since you contributed very heavily to the new-ish typing structure ofapollo-angularduring the migration to Apollo v4, I hoped you might have a few advice on the matter ?More specifically, I don't think we can use the types you introduced such as
Apollo.QueryResult(vsApolloClient.QueryResult) as-is anymore. And instead we should somewhat rely on the theApolloClient.query.Signature, but I am not sure what would the best way to do that.I am willing to break everything and make a major release if needed. I am even considering dropping most features, so that
apollo-angularbecomes an extremely thin wrapper that monkey-patch@apollo/client, in order to rely 100% on@apollo/clienttypes instead of introducing an "extra layer" of types... but hopefully you have better comprehension of@apollo/clientand you can guide me toward a saner solution 😅