Line 13 of app.jsx:
useEffect(() => {
getDoc(user).then((doc) => {
setTODO(doc.data().todos);
});
}, [user]);
This causes an infinite loop of requests to the firestore database, racking up about 50,000 requests an hour. Is there a good method for allowing useEffect to render setTODO without this error?
Line 13 of app.jsx:
useEffect(() => {
getDoc(user).then((doc) => {
setTODO(doc.data().todos);
});
}, [user]);
This causes an infinite loop of requests to the firestore database, racking up about 50,000 requests an hour. Is there a good method for allowing useEffect to render setTODO without this error?