fix: refetch organizer data pages on visit to avoid stale data (#8260)

Co-authored-by: Kai Wang <kw491@students.waikato.ac.nz>
This commit is contained in:
Kai WangandKai Wang authored and GitHub committed 2026-09-02 14:37:42 +00:00
1 parent d2e27a034d
commit b897ea52a9
4 files changed
+16

No files matched your search

@@ -142,6 +142,10 @@ const tableHeaders: TableHeaders[] = [
];
const categoryStore = useCategoryStore();
onMounted(() => {
categoryStore.actions.refresh();
});
// ============================================================
// Form items (shared)
const formItems = [
+4
View File
@@ -289,6 +289,10 @@ const foods = computed(() =>
}),
);
onMounted(() => {
foodStore.actions.refresh();
});
// ============================================================
// Labels
const { store: allLabels } = useLabelStore();
+4
View File
@@ -142,6 +142,10 @@ const tableHeaders: TableHeaders[] = [
];
const tagStore = useTagStore();
onMounted(() => {
tagStore.actions.refresh();
});
// ============================================================
// Form items (shared)
const formItems = [
+4
View File
@@ -70,6 +70,10 @@ const tools = computed(() => toolStore.store.value.map((tools) => {
return { ...tools, onHand } as RecipeToolWithOnHand;
}));
onMounted(() => {
toolStore.actions.refresh();
});
// ============================================================
// Form items (shared)
const formItems = [