Newly refreshed dashboard table shows stale data after all dashboards closed for some time

Perhaps this post give you a starting point:

All depends on the type of data. The flow in the linked post is for growing data, like logging events. If you are updating data the tabledata.push() Is not enough. Then you need an object with an unique id for every row to keep your data in sync.