cập nhật api thêm/sửa mẻ
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user