force user initialisation - fixes #2
This commit is contained in:
@@ -11,6 +11,10 @@
|
||||
const notesStore = useNotesStore();
|
||||
const { notes } = storeToRefs(notesStore); // ensure the notes list is reactive
|
||||
|
||||
onMounted(async () => {
|
||||
await authStore.initUser();
|
||||
});
|
||||
|
||||
watchEffect(async () => {
|
||||
if (activeMembership.value) {
|
||||
await notesStore.fetchNotesForCurrentUser();
|
||||
|
||||
Reference in New Issue
Block a user