Closed kitten closed 2 months ago
Latest commit: e7add6194f752dd830ccc09cc0e9c45097217133
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Summary
The subscription handlers infer their new value argument type as
T
ofOperationResult<T>
. This means thatdata: null
cases are uncovered and the handler may accidentally receivenull
values when the types specify that this isn't possible.This may happen when a trailing value of a subscription contains a fatal error rather than a result value.
In this case it should be safe to ignore the value, since the subscription will either be restarted by the subscription client (or a
retryExchange
), or will terminate.Set of changes
null
values before passingresult.data
to subscription handlers