Skip to content

Commit a62d71e

Browse files
committed
incremental delivery: without branching, with deduplication
1 parent dfc7a92 commit a62d71e

File tree

8 files changed

+1744
-731
lines changed

8 files changed

+1744
-731
lines changed

src/execution/__tests__/defer-test.ts

Lines changed: 257 additions & 287 deletions
Large diffs are not rendered by default.

src/execution/__tests__/mutations-test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,18 +237,19 @@ describe('Execute: Handles mutation execution ordering', () => {
237237
first: {},
238238
second: { theNumber: 2 },
239239
},
240+
pending: [{ path: ['first'], label: 'defer-label' }],
240241
hasNext: true,
241242
},
242243
{
243244
incremental: [
244245
{
245-
label: 'defer-label',
246246
path: ['first'],
247247
data: {
248248
promiseToGetTheNumber: 2,
249249
},
250250
},
251251
],
252+
completed: [{ path: ['first'], label: 'defer-label' }],
252253
hasNext: false,
253254
},
254255
]);
@@ -312,12 +313,12 @@ describe('Execute: Handles mutation execution ordering', () => {
312313
data: {
313314
second: { theNumber: 2 },
314315
},
316+
pending: [{ path: [], label: 'defer-label' }],
315317
hasNext: true,
316318
},
317319
{
318320
incremental: [
319321
{
320-
label: 'defer-label',
321322
path: [],
322323
data: {
323324
first: {
@@ -326,6 +327,7 @@ describe('Execute: Handles mutation execution ordering', () => {
326327
},
327328
},
328329
],
330+
completed: [{ path: [], label: 'defer-label' }],
329331
hasNext: false,
330332
},
331333
]);

0 commit comments

Comments
 (0)