Open rtibbles opened 2 months ago
The useUser composable now encapsulates all the vuex getters and state for the session, we should migrate all references to these to instead import the useUser composable and read from there.
See the composable for the full list of getters and state that will need to be remapped: https://github.com/learningequality/kolibri/blob/develop/kolibri/core/assets/src/composables/useUser.js#L36
Note, this will not involve removing the session vuex module.
Hi @rtibbles, can I try this issue?
Hi @nathanaelg16 - yes, please do!
When you make a pull request, I'd suggest making a commit 'per plugin' (learn, coach, etc. and one for the core references).
The useUser composable now encapsulates all the vuex getters and state for the session, we should migrate all references to these to instead import the useUser composable and read from there.
See the composable for the full list of getters and state that will need to be remapped: https://github.com/learningequality/kolibri/blob/develop/kolibri/core/assets/src/composables/useUser.js#L36
Note, this will not involve removing the session vuex module.