muhajirdev/gatsby-starter-firebase

Wishlist: Firestore + Redux gatsby starter

estherholleman opened this issue · 4 comments

Hi Muhammad, I'm struggling to get Firestore working together with Gatsby and Redux (with middleware (Redux Thunk)) using 'react-redux-firebase' and 'redux-firestore'. A reference error (self is not defined , due to a polyfill in firebase) occurs when trying to import firebase (initializeApp). I need to be able to read from and write to Firestore (and authentication too ideally). It would be great if you could make a starter on this! :-)

Hey @estherholleman , I feel you. I had that problem when integrating gatsby-firebase-mobx . And it's super annoying 🤣 . I'll create a starter for that and I'll let you know after it's done.

Wow, thank you @muhajirframe ! That was fast! Great idea to put the Firebase import statements in componentDidMount (importing Firebase appeared to be the problem in my attempts). I'd also never worked with createContext before, so that was interesting 👍 Thanks so much again! :D

Okay, closing this issue 👍 . Let me know if you face another issue @estherholleman