chore: build
Frontend Admin - EAS Build / build (push) Has been cancelled
Frontend Client - EAS Build / build (push) Has been cancelled

This commit is contained in:
2026-06-20 21:17:59 +02:00
parent 768de08f87
commit 403e765a51
4 changed files with 35 additions and 18 deletions
@@ -1,4 +1,5 @@
import React, { useState, useEffect, useCallback, useRef } from "react";
import { useFocusEffect } from "@react-navigation/native";
import {
View,
Text,
@@ -1290,9 +1291,13 @@ export default function SettingsScreen() {
}
}, []);
useEffect(() => {
loadData();
}, [loadData]);
useFocusEffect(
useCallback(() => {
if (!isDirty.current) {
loadData();
}
}, [loadData])
);
// Retourne l'index du pool auquel la catégorie est assignée, ou -1 si aucun
const getPoolIndexFor = (catName: string): number => {
@@ -1366,6 +1371,7 @@ export default function SettingsScreen() {
setSaving(false);
if (res.success) {
isDirty.current = false;
await loadData();
await refreshColors();
showSuccess("Succès", "Paramètres sauvegardés");
} else {