We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f90c0af commit 035d4ccCopy full SHA for 035d4cc
src/store/modules/activity.ts
@@ -495,7 +495,12 @@ const mutations = {
495
state.active.duration = null;
496
state.active.events = null;
497
498
- state.active.history = {};
+ // Ensures that active history isn't being fully reloaded on every date change
499
+ // (see caching done in query_active_history and query_active_history_android)
500
+ // FIXME: Better detection of when to actually clear (such as on force reload, hostname change)
501
+ if (Object.keys(state.active.history).length === 0) {
502
+ state.active.history = {};
503
+ }
504
},
505
506
set_available(state, data) {
0 commit comments