You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: