react-firebase-hooks icon indicating copy to clipboard operation
react-firebase-hooks copied to clipboard

Questions about performance (bandwidth usage)

Open NathanC opened this issue 3 years ago • 0 comments

I want to make sure I'm not using more bandwidth than I intend

If I have different components that are each using useList for firebase database, with

  • the same location (/foo/bar)
  • but different refs or a different query

Will firebase fetch the data twice, or does the backend websocket logic prevent loading the same queries/fetching the same data at once?

Thanks in advance!

NathanC avatar Jun 12 '22 02:06 NathanC