Skip to content

Conversation

@comlaterra
Copy link
Member

Description

Since firebase is being used in the cacheReducer ( here ) it is required to have this dependency available not only for dev.

"lodash": "^4.17.21",
"reduce-reducers": "^1.0.4"
"reduce-reducers": "^1.0.4",
"firebase": "^8.7.1"
Copy link

@puppybits puppybits Dec 2, 2021

Choose a reason for hiding this comment

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

If we have another import then it will cause conflicts in the package deps. We already have getFirestore() function so we should get it from that instead.

const serverTimestamp = (key) =>
  key === '::serverTimestamp' && getFirestore().Timestamp.now();

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.

3 participants