Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No need to merge this PR. Instead check out the notes below, the files changed tab, make some issues addressing whatever you consider important, then close this PR.
In group.js...
you may not need the .then or .catch in your functions if you are just updating the db. Firebase/Firestore will reflect that
set up an initial listener for realtime updates, see: https://firebase.google.com/docs/firestore/query-data/listen
Also make sure that you remove the listener when you unmount (similar to redux)
your collections/documents may be tied to the state, props, or the URL bar in order to obtain the snapshot.
Really nice documentation :D
db.collection('cities').doc('aergadgaer').update({name: 'LA'});
{
name: 'San Francisco',
color: 'red',
age: 85
}
db.collection('cities').doc('aergaerg').set({name: 'LA'}, {merge: true});
generalize methods to be more reusable, as opposed to specific methods. For very specific methods, you might want to make direct calls.
React Toaster => display errors, better than
console.logYou can move some funcs into a utils file/folder
Lack of
returnstatements. All functions should have a return unless you know that it doesn't matter.Remove files you don't need -> test file in firebase, and the server folder.
Bluebird.try (for Snippet.js)
Docker!
finallyin your async block.