I recently used Redux recently, and I wanted to create a simple application with it. I already made the main structure with my own implementation of State, Reducer and Action.
But I am wondering how to add some data to the application using Firebase. By this, I mean what might be the best practice for structuring and externalizing data calls, similar to the State of Redux application. Iβve already thought about creating control and dispatch actions that call data, but Firebase uses a lot of callbacks, so I donβt find a good way to manage it by following this pattern.
Can someone give me a hand on the good practice of structuring the data model in an Android application after the Redux pattern?
Thank you so much in advance.
source share