Skip to content

Conversation

davideast
Copy link
Collaborator

Update sample app in the repository to use the latest API for preloadFactory() methods:

preloadFirestore({
   firebaseApp,
   setup(firestore) {
     return firestore().enablePersistence();
   }
}),

return firestore().enablePersistence();
preloadFirestore({
firebaseApp,
setup(firestore) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

any opinion on

setup(firestore) {

vs

setup: firestore => {

for all of these?

The second is a bit more clear to me, but that could just be me

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I prefer the named function. AFIK, it will show up in the stack trace and the arrow function will not.

Copy link
Collaborator

@jhuleatt jhuleatt left a comment

Choose a reason for hiding this comment

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

Thanks David!

@davideast davideast merged commit 68cfc79 into master May 7, 2020
@davideast davideast deleted the de-preload-updates branch May 7, 2020 02:12
@FirebaseExtended FirebaseExtended locked and limited conversation to collaborators Dec 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants