Reputation: 6978
I'm building a small Firebase app with React as the view. I have been working with Redux a lot recently, so I thought I'd use it here too.
BUT, it seems that Flux architecture and Firebase are at odds and libraries like re-base are based on trying to avoid those conflicts, which I understand.
However it's unclear to me, given that Flux and Redux are fairly different, what is the simplest option:
Anyone with experience in this that can advise?
Upvotes: 2
Views: 1305
Reputation: 1615
If you are interested in an ES6 compatible react-redux library, there is react-redux-firebase. There is a short medium article I mention in the FAQ about why linking Firebase state and redux state is nice, but it seems like that is what you are already trying to do.
My experience with react, redux, and Firebase has lead me to decide that combining the state does have its merits. This becomes especially true when dealing with auth and user profiles.
Disclosure:
I am the author of react-redux-firebase (the library mentioned above) and the medium article mentioned.
Upvotes: 1
Reputation: 767
I'm wondering about this myself. There are some examples of react-redux and Firebase: Functioning demo
But there is also ReactFire referenced from the Firebase documentation as the "official" framework integration.
Upvotes: 4