mathgladiator / adama-lang

A headless spreadsheet document container service.
https://www.adama-platform.com/
GNU Affero General Public License v3.0
107 stars 15 forks source link

procedures in bubbles are not reactive #141

Closed mathgladiator closed 1 year ago

mathgladiator commented 1 year ago
procedure show_day(date the_day) -> DayReport readonly {
  int events_on_day = (iterate _calendar where when == the_day).size();
  ...
}

bubble this_month_calendar = (Time.today()).calendarViewOf() map show_day;

When _calendar changes, this_month_calendar should update; it doesn't because the function introduces a boundary

mathgladiator commented 1 year ago

This is fixed now with recent diffs where procedures record their dependencies in the type. It's a bit looser than I'd like, but it works.