mavo icon indicating copy to clipboard operation
mavo copied to clipboard

A default collection, created by the html specification of a Mavo, causes a save to storage

Open karger opened this issue 3 years ago • 0 comments

Mavo is designed so that nothing is saved to storage until some part of the data takes on a non-default value (an efficient idea, since if all values are defaults there is no point in storing them). However, if one defines a collection in the app, its initial value (a single item, or something else if mv-initial-items is used) is treated as "new" data and triggers a save. The code that creates the initial collection should read unsavedChanges beforehand and restore it after.

karger avatar Jul 04 '22 13:07 karger