From 41af07c440f4e0cc73047edc366f82cd0ba16f79 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Thu, 29 Aug 2024 16:47:11 +0800 Subject: [PATCH] Test show error toast if first load + no items --- src/components/timeline.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/timeline.jsx b/src/components/timeline.jsx index 7f070ce6..4c06ffe8 100644 --- a/src/components/timeline.jsx +++ b/src/components/timeline.jsx @@ -121,6 +121,9 @@ function Timeline({ } catch (e) { console.error(e); setUIState('error'); + if (firstLoad && !items.length && errorText) { + showToast(errorText); + } } finally { loadItems.cancel(); }