Hey, Polymer 3 seems to have some issues with the way Firebase used to work 
with it. I managed to get it going by adding the import links into 
index.html (addresses either from CMD or your local node_modules for 
firebase_app, firebase_firestore, etc), then write the initialization code 
in a separate file that you then import in your my-app.js similar to how 
lazy-resources are imported. You can then attach an event listener that 
when firebase is initialized you can set a flag to true and pass that in 
your views if you need to know the state. Also you can add the 
onAuthStatechanged listener to monitor for that. Hope this helps. Cheers.

On Wednesday, March 6, 2019 at 8:27:04 PM UTC-7, Vinicius Hoss wrote:
>
> Hi Everyone!
>
> please, can someone help me with examples how to integrating *Firestore 
> and Polymer 3 *(like a CRUD, using polymer 3, anything will help me so 
> much). 
>
> i found this codelab 
> <https://codelabs.developers.google.com/codelabs/polymer-firebase-pwa/index.html?index=..%2F..index#0>
>  about 
> polymerfire (firebase realtime database) and polymer. I did and everything 
> works perfectly using Firebase, but i can't find anything about how to use 
> Firestore and Polymer 3.
>
> Sorry if this is not the appropriate group about this question.
>
> Thank you!
>
> Vinícius :)
>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/cb722916-42bc-49af-8cf5-080885e7ad28%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to