psu-software-engineering-capstone / walktober

Walktober is a yearly fitness challenge at PSU and this project is to design a software platform for it. The platform is modern, responsive, improved design and analytics and simplified configuration. Let's create the best Walktober experience!
Other
5 stars 3 forks source link

reduce usage of snapshot listeners using state and props #290

Closed juroc95 closed 1 year ago

juroc95 commented 1 year ago

I have restructured the overall structure of database calls. Most database calls occur in the Dashboard.tsx file, and after preprocessing the data in Dashboard.tsx, it is passed to each child component in the form of props. This allows for more efficient database calls and real-time updates for all pages.