maniyaom / Movie-Ticket-Booking

https://movie-ticket-booking-five.vercel.app
MIT License
37 stars 107 forks source link

Proposal to Implement Redux for Data Management #210

Open anuragbansall opened 1 month ago

anuragbansall commented 1 month ago

Hey @maniyaom,

Currently, we are directly using Firebase to fetch data, which can be cumbersome as we need to add Firebase functions in each component. I propose we implement a Redux store to streamline this process. By doing so, if the application expands in the future, users can easily fetch data from Redux, which will handle the data fetching from Firebase and store it for easy access.

github-actions[bot] commented 1 month ago

@anuragbansall

Thank you for raising this issue! 🎉🙌

We truly appreciate your contribution to this project and will review the details shortly. 🛠️✨ We will get back to you soon!

Thank you for your patience! 🙏

maniyaom commented 1 month ago

@anuragbansall I don't know about Redux. How it will be helpful?

anuragbansall commented 1 month ago

Hey @maniyaom ,

Using Redux will make it easier to manage the movie data in your app. Instead of calling Firebase every time you need movie info in different components, you can fetch it once, store it in Redux, and then access it anywhere in the app without refetching. It'll help keep the code cleaner and make the app faster as it scales.