I'm defining a mavo app where a different instances get different data files through manipulation of the mv-storage attribute. When a new instance is created it is initially empty, and since I have autosave enabled, mavo immediately saves an empty file. This is going to have the undesirable behavior of generating a large number of empty json files corresponding to all the times someone "opened an instance" then canceled without making any edits. It would be nice if there were a way to prevent saving an initially empty json (obviously, if the json is not empty but becomes empty, you need to save in order to delete the old content). At least for autosave---perhaps there is a way to tell autosave to treat the initial empty content as "clean" and not in need of saving?
I'm defining a mavo app where a different instances get different data files through manipulation of the mv-storage attribute. When a new instance is created it is initially empty, and since I have autosave enabled, mavo immediately saves an empty file. This is going to have the undesirable behavior of generating a large number of empty json files corresponding to all the times someone "opened an instance" then canceled without making any edits. It would be nice if there were a way to prevent saving an initially empty json (obviously, if the json is not empty but becomes empty, you need to save in order to delete the old content). At least for autosave---perhaps there is a way to tell autosave to treat the initial empty content as "clean" and not in need of saving?