You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Information Flow documentation doesn't mention some important details about how data is exchanged between the service worker and the open browser tabs.
Describe in detail how, for example, periodic notifications work. For example, it's not clear that when the service worker posts a periodic notification as a push notification, that a separate in-app notification needs to be made, and that a message is sent to each browser tab to create the notifications, and each tab will update its own Vuex state, and then each tab will save that same Vuex state to disk. So if you have 7 tabs open, that's 7 writes of the Vuex state to disk, with all but the last one getting overwritten.
And explain why, for example, we don't write to one tab and have the others load that state (because then if one tab is pointed to one group, and another tab is open to another group, it would make all tabs point to the same group).
Discuss the difference between the Vuex state and the Chelonia state, and how the SW Chelonia state gets copied to the browser tabs.
The text was updated successfully, but these errors were encountered:
Problem
The Information Flow documentation doesn't mention some important details about how data is exchanged between the service worker and the open browser tabs.
Some of this is mentioned in the LOGIN_FLOW.md documentation, but it really needs to be elaborated on in the Information Flow documentation.
Solution
Describe in detail how, for example, periodic notifications work. For example, it's not clear that when the service worker posts a periodic notification as a push notification, that a separate in-app notification needs to be made, and that a message is sent to each browser tab to create the notifications, and each tab will update its own Vuex state, and then each tab will save that same Vuex state to disk. So if you have 7 tabs open, that's 7 writes of the Vuex state to disk, with all but the last one getting overwritten.
And explain why, for example, we don't write to one tab and have the others load that state (because then if one tab is pointed to one group, and another tab is open to another group, it would make all tabs point to the same group).
Discuss the difference between the Vuex state and the Chelonia state, and how the SW Chelonia state gets copied to the browser tabs.
The text was updated successfully, but these errors were encountered: