Open jloh opened 1 year ago
I'm also doing this and I just found your post, I don't have obsidian sync and I'm getting the same behaviour. I can only update two values at a time, in succession. Did you find a solution?
Even without sync activated, this just not works reliably with promise chaining. I would appreciate it if there was a function that updates several values at once. 👍
Yea, I'm having the same problem and got it working for now also by just making it sleep for a 100ms between each update. But it would be nice to have a less clunky solution in the future. 👍
I have a dataview table like this that updates several values at once when I hit a button on it:
My problem is I also have Obsidian Sync enabled which seems to clobber some of the updates. Some devices update all the values successfully, others only update the first two before I'm guessing Sync kicks in which seems to undo/prevent the final two updating.
I've successfully worked around this by adding some sleep's in between the updates so it looks like this:
This seems to make it consistently update all the values as I'm guessing it gives Sync enough time to do whatever it is doing to the file. I know its Sync breaking the update because when I disable the plugin the button works completely fine updating all values as intended.
Is there a better work around or way to just update the values all at once so its just one file change?
Thanks in advance and thanks for the plugin!