enso-org / enso

Enso Analytics is a self-service data prep and analysis platform designed for data teams.
https://ensoanalytics.com
Apache License 2.0
7.37k stars 323 forks source link

FRP bug - calling value() on toggle_true before any toggling returns false. #2260

Closed farmaazon closed 3 years ago

farmaazon commented 4 years ago

General Summary

When you create toggle_true FRP node, and read it value before it'll be toggled, the returned value will be false.

That happens because value() reads NodeData::value_cache and that cache is initialised with default and updated only when event is emitted from node.

Enso Version

Spotted on master (commit 026a2585aec59d606933f00e3ce591b1696f928c)

wdanilo commented 4 years ago

Fixed on master