Skip to content
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

Merged
merged 6 commits into from
Dec 6, 2020
Merged

Reduce Firebase reads #203

merged 6 commits into from
Dec 6, 2020

Conversation

ianmah
Copy link
Contributor

@ianmah ianmah commented Dec 6, 2020

No description provided.

@github-actions
Copy link

github-actions bot commented Dec 6, 2020

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 🌎

@ianmah ianmah requested a review from jackyzha0 December 6, 2020 06:31
Comment on lines 14 to 16
.orderBy('timestamp', 'desc')
.limit(6)
.onSnapshot(querySnapshot => {
Copy link
Contributor

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?

Copy link
Contributor Author

@ianmah ianmah Dec 6, 2020

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

Copy link
Contributor

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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@jackyzha0 jackyzha0 merged commit 3f11721 into master Dec 6, 2020
@jackyzha0 jackyzha0 deleted the reduce-reads branch December 6, 2020 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants