From 04b07f4ab47d81c0b52e714c57556000ccd6473b Mon Sep 17 00:00:00 2001 From: "Amy J. Ko" Date: Wed, 10 Jul 2024 18:24:20 -0700 Subject: [PATCH] Fixed reactivity dependency bug that included evaluates in branch dependencies. --- CHANGELOG.md | 1 + src/nodes/Evaluate.ts | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b952d2b89..e84626996 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ Dates are in `YYYY-MM-DD` format and versions are in [semantic versioning](http: - [#514](https://github.com/wordplaydev/wordplay/issues/514) Fixed cursor position on hidden language tags. - Fixed parsing bug that prevented complete parsing of the program. +- Fixed reactivity dependency bug that included evaluates in branch dependencies. ## 0.10.4 2024-07-08 diff --git a/src/nodes/Evaluate.ts b/src/nodes/Evaluate.ts index 533a1cd50..be0029d9c 100644 --- a/src/nodes/Evaluate.ts +++ b/src/nodes/Evaluate.ts @@ -739,10 +739,6 @@ export default class Evaluate extends Expression { return false; } - hasBranch(expr: Expression) { - return this.fun === expr || this.inputs.includes(expr); - } - compile(evaluator: Evaluator, context: Context): Step[] { // To compile an evaluate, we need to compile all of the given and default values in // order of the function's declaration. This requires getting the function/structure definition