Created
May 19, 2021 00:00
-
-
Save m3l1nd4/87993f5d2b75a86019e3f4fc821484e6 to your computer and use it in GitHub Desktop.
This file contains 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
// Get Threads Data | |
const getThreads = () => { | |
db.collection('threads') | |
.orderBy('created', 'desc') | |
.get().then(snapshot => setUpThreads(snapshot.docs)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment