Skip to content

Commit

Permalink
Allow hoisting __FlagStep in mutations
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Apr 13, 2024
1 parent 08346c3 commit 7af99df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions grafast/grafast/src/engine/OperationPlan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2499,6 +2499,8 @@ export class OperationPlan {
// OPTIMIZE: figure out under which circumstances it is safe to hoist here.
// break;
return;
} else if (step instanceof __FlagStep) {
break;
} else {
// Plans that rely on external state shouldn't be hoisted because
// their results may change after a mutation, so the mutation should
Expand Down

0 comments on commit 7af99df

Please sign in to comment.