Skip to content

Conversation

@w2-yamaguchi
Copy link
Contributor

I fixed duplicate-service error and timestamps warning.

duplicate-service error

Firebase service named 'firestore' already registered (app/duplicate-service).

timestamps warning

The behavior for Date objects stored in Firestore is going to change
AND YOUR APP MAY BREAK.
To hide this warning and ensure your app does not break, you need to add the
following code to your app before calling any other Cloud Firestore methods:
  const firestore = firebase.firestore();
  const settings = {/* your settings... */ timestampsInSnapshots: true};
  firestore.settings(settings);

@nicolasgarnier
Copy link
Contributor

Thanks @w2-yamaguchi !

@nicolasgarnier nicolasgarnier merged commit d954407 into firebase:master Sep 18, 2018
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