0

I have multiple queries in the same polymer element that are from different location in Firebase. I am wondering if that's ok to use one firebase-query element and change the path programmatically and if yes how? I have come across this and this which seem to show some issues.

And is there a problem with using multiple firebase-query elements in the same custom element of mine? I'm mostly looking for best practices here if there's any. Thanks for any help.

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
TheBen
  • 3,410
  • 3
  • 26
  • 51
  • It's an interesting question. I think the way is to find a middle ground here. I try to have one firebase-query by data I need at the same time. The only drawback of having severals firebase-query in the same element is the number of simultaneous requests. If it begin to be slow, I try to refactor my app to reduce the amount of data needed at the same time. – Arfost Jan 06 '17 at 14:54
  • @Arfost, Thanks for the comment, you are right. – TheBen Jan 06 '17 at 19:37

0 Answers0