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

Make firebase dependency available not only for dev #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

@@ -41,7 +41,8 @@
"debug": "^4.3.2",
"immer": "9.0.5",
"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.

2 participants