Mohamed Bin-Dohry

Results 5 comments of Mohamed Bin-Dohry

@Yey007 I fixed my issue by moving any real-time listeners from React Context to the components that need the data. As for dataOnce methods, they work fine for me in...

@Yey007 Try this: 1. [https://stackoverflow.com/a/64510846/6858112](https://stackoverflow.com/a/64510846/6858112) 2. [https://bobbyhadz.com/blog/react-listen-to-state-change](https://bobbyhadz.com/blog/react-listen-to-state-change) ```js import { useEffect } from 'react'; const db = getFirestore(); const Test: React.FC = () => { const docRef = doc(db, 'classes',...

@marduzca In my initial code example, I was using React 17 and was still having the issue.

*(This response was created with the help of Google Gemini.)* Hello\! I took a look at your code, and it appears the infinite loop is being caused by a common...

The issue is likely due to the Chromium engine enabling smooth scrolling by default after a recent update. I'm using macOS 15.7.1 (Sequoia) and experiencing the same problem. If you...