Remove navigation mutation calls from the elements Vuex store module
The navigation
Vuex store module relies on some getters provided by the auth
Vuex store module.
The auth
module calls, among other things, an action of the selection
module, to fetch the user's selection when logging in.
When fetching the user's selection, the selection
module sends the selected elements to the elements
module, since that's where all of the elements are stored.
The elements
module has actions that can move or delete elements. When this happens, we want the elements to be hidden from element lists, so it has to call the module responsible for those element lists. Thus, it cals a mutation on… the navigation
module.
Since Pinia stores cannot access Vuex store modules, this loop gets us stuck. An easy way to break this loop is to temporarily disable this element hiding feature, which is purely cosmetic and no longer works if you ever press F5.
Therefore, please remove the two calls to the navigation/addToScheduledDeletion
mutation from the elements
Vuex store module. This will allow to migrate the elements
module (#1142 (closed)).