Swr: Firebase database and swr

Created on 2 Feb 2020  路  4Comments  路  Source: vercel/swr

Question : Is it a good strategy to use swr with firebase ?

Most helpful comment

@danoc wow I didn't know about that lib, it looks truly amazing. Thank you!

All 4 comments

You could use the Firebase JS client as fetcher, probably with a wrapper, but I鈥檓 not sure how useful it would be 馃

Realtime database and Firestore has their own optimized caching strategy so it's better to let them handle their own data.

Highly recommend checking out swr-firebase. I'm playing around with it now and it seems very well done.

@danoc wow I didn't know about that lib, it looks truly amazing. Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Svish picture Svish  路  5Comments

polc picture polc  路  3Comments

timurmaio picture timurmaio  路  3Comments

bbenezech picture bbenezech  路  5Comments

baoduy picture baoduy  路  4Comments