cập nhật api thêm/sửa mẻ

This commit is contained in:
Tran Anh Tuan
2025-11-10 10:45:31 +07:00
parent 45746a6a0f
commit f3b0e7b7eb
5 changed files with 97 additions and 24 deletions

View File

@@ -18,11 +18,11 @@ export default function TabLayout() {
// TODO: xử lý khi chuyển tab ở đây
if (prev.current === "(tabs)" && currentSegment !== "(tabs)") {
stopEvents();
// console.log("Stop events");
console.log("Stop events");
} else if (prev.current !== "(tabs)" && currentSegment === "(tabs)") {
// we came back into the tabs group — restart polling
startEvents();
// console.log("start events");
console.log("start events");
}
prev.current = currentSegment;
}