We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fa7d55 commit 2b42b91Copy full SHA for 2b42b91
src/execution/IncrementalPublisher.ts
@@ -300,12 +300,7 @@ class IncrementalPublisher {
300
): void {
301
const streamRecord = streamItemsResult.streamRecord;
302
const id = streamRecord.id;
303
- // TODO: Consider adding invariant or non-null assertion, as this should never happen. Since the stream is converted into a linked list
304
- // for ordering purposes, if an entry errors, additional entries will not be processed.
305
- /* c8 ignore next 3 */
306
- if (id === undefined) {
307
- return;
308
- }
+ invariant(id !== undefined);
309
if (streamItemsResult.errors !== undefined) {
310
context.completed.push({
311
id,
0 commit comments