fix: clear cached store data on logout to prevent user data leakage (#6665)

This commit is contained in:
Hayden
2025-12-06 11:36:39 -06:00
committed by GitHub
parent 1f19133870
commit 05f648d7fb
12 changed files with 91 additions and 8 deletions

View File

@@ -7,6 +7,12 @@ const store: Ref<IngredientFood[]> = ref([]);
const loading = ref(false);
const publicLoading = ref(false);
export function resetFoodStore() {
store.value = [];
loading.value = false;
publicLoading.value = false;
}
export const useFoodData = function () {
return useData<IngredientFood>({
id: "",