Created
February 5, 2022 15:11
-
-
Save kazuooooo/b4d1cfcd5b4dfee8e3fd12d2859fca2d 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
async setup() { | |
// It's very vervose... | |
onSnapshot(docRefA, (ds) => { | |
if (ds.exists()) { | |
this.$patch({ docDataA: ds.data() }) | |
} | |
}) | |
onSnapshot(docRefB, (ds) => { | |
if (ds.exists()) { | |
this.$patch({ docDataB: ds.data() }) | |
} | |
}) | |
onSnapshot(docRefC, (ds) => { | |
if (ds.exists()) { | |
this.$patch({ docDataC: ds.data() }) | |
} | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment