Skip to content

Instantly share code, notes, and snippets.

@m3l1nd4
Created May 19, 2021 00:00
Show Gist options
  • Save m3l1nd4/87993f5d2b75a86019e3f4fc821484e6 to your computer and use it in GitHub Desktop.
Save m3l1nd4/87993f5d2b75a86019e3f4fc821484e6 to your computer and use it in GitHub Desktop.
// 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