From 1a883a6711ba07ed479f9cd86a79ac00b065b227 Mon Sep 17 00:00:00 2001 From: Pritimay Sarkar Date: Mon, 18 Dec 2023 10:39:48 +0530 Subject: [PATCH] cache 17 dec data --- src/App.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/App.js b/src/App.js index 6bc6479..15b6019 100644 --- a/src/App.js +++ b/src/App.js @@ -7,12 +7,12 @@ import Card from './components/Card'; import db from './firebase'; function App() { - const registrationCached = 16329; - const malesCached = 6741; - const femalesCached = 9179; - const normalCached = 7153; - const traitsCached = 2312; - const diseasesCached = 365; + const registrationCached = 19453; + const malesCached = 8321; + const femalesCached = 10646; + const normalCached = 9626; + const traitsCached = 2575; + const diseasesCached = 388; const [totalScreened, setTotalScreened] = useState(0); const [males, setMales] = useState(0); const [females, setFemales] = useState(0); @@ -26,7 +26,7 @@ function App() { useEffect(() => { // const q = query(collection(db, "patientData")); // cached - const notCachedDate = "2023-11-12"; + const notCachedDate = "2023-12-17"; const q = query(collection(db, "patientData"), where("createdAt", ">=", moment(notCachedDate).format("YYYY-MM-DD"))); const unsub = onSnapshot(q, (querySnapshot) => { @@ -54,7 +54,7 @@ function App() { }, []); useEffect(() => { - const notCachedDate = "2023-11-12"; + const notCachedDate = "2023-12-17"; const q = query(collection(db, "testData"), where("testTime", ">=", moment(notCachedDate).format("YYYY-MM-DD"))); const unsub = onSnapshot(q, (querySnapshot) => {