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

@@ -130,11 +130,19 @@ import {
signInWithEmail,
} from "~/helpers/fb/auth"
import { setLocalConfig } from "~/newstore/localpersistence"
import { useStreamSubscriber } from "~/helpers/utils/composables"
export default {
props: {
show: Boolean,
},
setup() {
const { subscribeToStream } = useStreamSubscriber()
return {
subscribeToStream,
}
},
data() {
return {
form: {
@@ -149,7 +157,7 @@ export default {
}
},
mounted() {
this.$subscribeTo(currentUser$, (user) => {
this.subscribeToStream(currentUser$, (user) => {
if (user) this.hideModal()
})
},