refactor: remove vue-rx dependency

This commit is contained in:
Andrew Bastin
2021-08-12 13:44:10 +05:30
parent 971b35a252
commit c273ded97d
24 changed files with 238 additions and 234 deletions

View File

@@ -52,10 +52,17 @@
</template>
<script>
import { defineComponent } from "@nuxtjs/composition-api"
import gql from "graphql-tag"
import { currentUser$ } from "~/helpers/fb/auth"
import { useReadonlyStream } from "~/helpers/utils/composables"
export default {
export default defineComponent({
setup() {
return {
currentUser: useReadonlyStream(currentUser$, null),
}
},
data() {
return {
showModalAdd: false,
@@ -66,11 +73,6 @@ export default {
myTeams: [],
}
},
subscriptions() {
return {
currentUser: currentUser$,
}
},
apollo: {
me: {
query: gql`
@@ -128,5 +130,5 @@ export default {
this.$data.editingteamID = undefined
},
},
}
})
</script>