[4.0] Align ApolloQueryResult
type and emitted result from the core API
#12331
Labels
Milestone
ApolloQueryResult
type and emitted result from the core API
#12331
See #12327 as an example.
There are several cases where our TypeScript types and runtime behavior don't align. For example, the
ApolloQueryResult
type expectsdata
to be a non-optionalTData
type. This is however incorrect asObservableQuery
will emit results wheredata
isundefined
or partial.To ensure a good end-user experience, we'd like to make the type robust enough that
data
is aDeepPartial<TData>
only whenpartial
is set totrue
.The text was updated successfully, but these errors were encountered: