Skip to content

Make firebase dependency available not only for dev#26

Open
comlaterra wants to merge 1 commit into
masterfrom
emc/fix-dependency
Open

Make firebase dependency available not only for dev#26
comlaterra wants to merge 1 commit into
masterfrom
emc/fix-dependency

Conversation

@comlaterra

Copy link
Copy Markdown
Member

Description

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

Comment thread package.json
"lodash": "^4.17.21",
"reduce-reducers": "^1.0.4"
"reduce-reducers": "^1.0.4",
"firebase": "^8.7.1"

@puppybits puppybits Dec 2, 2021

Copy link
Copy Markdown

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.

2 participants