Formulas With Array Inputs Do Not Recompute On Changes To Referred Cells In The Array #982
Replies: 4 comments 4 replies
-
@Chris-Schuster-Daydream I am sorry you experienced an issue with HyperFormula. Our team will investigate it shortly. |
Beta Was this translation helpful? Give feedback.
-
@Chris-Schuster-Daydream Is there a reason why you use curly braces (
ExplanationCurly braces syntax defines an ad-hoc array (inline array, array constant) which is meant to be used for constant expressions only. From Open Formula 1.3 Standard:
Other softwareSpreadsheet software is not entirely consistent in handling cell references inside inline arrays. Typing
@warpech What do you think about this case? I'd definitely describe ad-hoc arrays better in our docs but should we alter the behaviour of HyperFormula to match the other software? |
Beta Was this translation helpful? Give feedback.
-
Altering it would be a breaking change. Let's collect more evidence if users are strongly convinced that the feature should be changed. For now, I think we should:
|
Beta Was this translation helpful? Give feedback.
-
@Chris-Schuster-Daydream All things considered, we decided that a new configuration flag will be introduced to control this behaviour. So it will be possible to set up HyperFormula in such a way that inline arrays are recomputed on updates to their dependencies. This task will be tracked in issue #894 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Actual: If I define a formula using an array, the value of the formula is only computed initially.
Expected: If I define a formula using an array, the value of the formula should recompute whenever the value of the array changes or the value of a cell referred to by the array changes.
Steps to reproduce
Demo
Here's a unit test in Typescript and Jest
The second expect fails with
when it should succeed.
Your environment
Hyperformula: 2.0.0
Browser: Chrome Version 100.0.4896.127 (Official Build) (64-bit)
Operating System: Ubuntu 21.10
Links
Beta Was this translation helpful? Give feedback.
All reactions