title: Compatibility of ClojureScript & Cloud Firestore for Firebase
body: <p>TLDR; Does ClojureScript retain the realtime functionality of Cloud Firestore? If so, how would I implement it using the firebase API?</p>
  
  <p>I am building the front end for my serverless web application. I already have implemented some complex cloud functions that perform writes to Cloud Firestore (Golang). </p>
  
  <p>I want to use ClojureScript &amp; the Firebase API to create my Front End. I worry that I will not be able to retain the realtime functionality of Firestore reads. </p>
  
  <p>In particular, when an object is viewed in my front end, I would trigger an update method on that object. My hope is that via the magic of Firestore/Firebase, when the object has changed, it would also do so in the view of my web app.</p>
  
  <p>I know ClojureScript compiles into JS, so I figure it must be possible. But I wanted to verify before committing to learning ClojureScript for my web app.</p>
  
  <p>I have found a few Cljs libraries which implement firebase, but it seems most of them are not actively maintained or depreciated.</p>
  
  <p>So is it possible? And how would I go about doing it? Is there a cljs design paradigm to follow? I would like to use re-frame and reagent </p>
  
  <p>I have read the JS &amp; Node.js documentation. Should I be using one over the other?
  <a href="https://firebase.google.com/docs/firestore/quickstart?authuser=0" rel="nofollow noreferrer">https://firebase.google.com/docs/firestore/quickstart?authuser=0</a></p>
  
  <p>Using Cljs, when viewing object X, if X is updated in Firestore, the view of X shows the updated object. Without reloading the page or polling the DB.</p>