-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce Firebase reads #203
Conversation
Visit the preview URL for this PR (updated for commit 86448b7): https://nwplus-ubc--pr203-reduce-reads-iqm17ol2.web.app (expires Sun, 13 Dec 2020 11:22:45 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
src/containers/Announcements.js
Outdated
.orderBy('timestamp', 'desc') | ||
.limit(6) | ||
.onSnapshot(querySnapshot => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we reuse the data fetched from src/App.js:L117
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's get someone with iOS to test the preview pr to make sure my changes didn't break the homepage before we merge. @acchiang? Can you make sure you still see announcements on the homepage
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just got carmen to test on iOS, looks good
return db | ||
.collection(DB_COLLECTION) | ||
.doc(DB_HACKATHON) | ||
.collection('QuickLinks') | ||
.where('common', '==', true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
No description provided.