Skip to content

Commit

Permalink
incremental delivery: without branching, with deduplication
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR committed Jun 17, 2023
1 parent c212b63 commit 6a1ef34
Show file tree
Hide file tree
Showing 9 changed files with 1,741 additions and 855 deletions.
634 changes: 486 additions & 148 deletions src/execution/IncrementalPublisher.ts

Large diffs are not rendered by default.

485 changes: 213 additions & 272 deletions src/execution/__tests__/defer-test.ts

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/execution/__tests__/mutations-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,13 @@ describe('Execute: Handles mutation execution ordering', () => {
{
incremental: [
{
label: 'defer-label',
path: ['first'],
data: {
promiseToGetTheNumber: 2,
},
},
],
completed: [{ path: ['first'], label: 'defer-label' }],
hasNext: false,
},
]);
Expand Down Expand Up @@ -317,7 +317,6 @@ describe('Execute: Handles mutation execution ordering', () => {
{
incremental: [
{
label: 'defer-label',
path: [],
data: {
first: {
Expand All @@ -326,6 +325,7 @@ describe('Execute: Handles mutation execution ordering', () => {
},
},
],
completed: [{ path: [], label: 'defer-label' }],
hasNext: false,
},
]);
Expand Down
Loading

0 comments on commit 6a1ef34

Please sign in to comment.