meteor-vue / vue-meteor-tracker

Use Meteor Tracker reactivity inside Vue components
90 stars 20 forks source link

Could use it out of Vue Component (Vue Composition API)? #64

Closed thearabbit closed 4 years ago

thearabbit commented 4 years ago
import { ..........} from '@vue/composition-api'

export default function useCurrentUser() {
  const currentUser = reactive({...})
  //................ Tracker......
  return {
    currentUser,
    isLogged
  }
}
thearabbit commented 4 years ago

https://github.com/meteor-vue/vue-meteor-tracker/issues/65