Skip to content

Commit e8368ed

Browse files
committed
fix
1 parent 587589c commit e8368ed

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

spec/Section 6 -- Execution.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,7 @@ YieldIncrementalResults(data, errors, incrementalDataRecords):
392392
- Append {GetCompletedEntry(pendingResult)} to {completed}.
393393
- Remove {pendingResult} from {graph}, promoting its child Deferred Fragment
394394
nodes to root nodes.
395-
- Let {newPendingResults} be a new set containing the result of
396-
{GetNonEmptyNewPending(graph, pendingResults)}.
395+
- Let {newPendingResults} be the result of {GetNonEmptyNewPending(graph)}.
397396
- Add all nodes in {newPendingResults} to {pendingResults}.
398397
- Update {graph} to the subgraph rooted at nodes in {pendingResults}.
399398
- Let {pending} be the result of {GetPendingEntry(newPendingResults)}.
@@ -413,18 +412,17 @@ BuildGraph(incrementalDataRecords, graph):
413412
until {incrementalDataRecord} is connected to {newGraph}.
414413
- Return {newGraph}.
415414

416-
GetNonEmptyNewPending(graph, oldPendingResults):
415+
GetNonEmptyNewPending(graph):
417416

418-
- If not provided, initialize {oldPendingResults} to the empty set.
419-
- Let {rootNodes} be the set of root nodes in {graph}.
417+
- Initialize {newPendingResults} to the empty set.
418+
- Initialize {rootNodes} to the set of root nodes in {graph}.
420419
- For each {rootNode} of {rootNodes}:
421-
- If {rootNodes} is in {oldPendingResults}:
422-
- Continue to the next {rootNode}.
423420
- If {rootNode} has no children Pending Incremental Data nodes:
424421
- Let {children} be the set of child Deferred Fragment nodes of {rootNode}.
425-
- Remove {rootNode} from {rootNodes}.
426422
- Add each of the nodes in {children} to {rootNodes}.
427-
- Return {rootNodes}.
423+
- Continue to the next {rootNode} of {rootNodes}.
424+
- Add {rootNode} to {newPendingResults}.
425+
- Return {newPendingResults}.
428426

429427
GetInitialResult(data, errors, pendingResults):
430428

0 commit comments

Comments
 (0)