No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. hamiltoes
    3. Posts
    H
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 3
    • Best 1
    • Groups 0

    Posts made by hamiltoes

    • RE: Vue Composition API

      @s-molinari after upgrading quasar, creating a new project using the CLI with quasar create project-name, gives an option for composition api components.

      And I was wrong in my initial post: you can just enable composition api via boot files.

      Here’s the boot file I’m now using:

      // composition-api.js
      import VueCompositionApi from '@vue/composition-api';
      import { boot } from 'quasar/wrappers';
      
      export default boot(({ Vue }) => {
        Vue.use(VueCompositionApi);
      });
      
      posted in Help
      H
      hamiltoes
    • RE: Vue Composition API

      Nevermind, found the new starter kit with composition api in discord.

      posted in Help
      H
      hamiltoes
    • Vue Composition API

      Is there any way to enable the new composition API? It must be imported before App.vue, such as

      import Vue from 'vue'
      import VueCompositionApi from '@vue/composition-api'
      
      // Register the Composition API plugin BEFORE you import App.vue
      Vue.use(VueCompositionApi)
      
      import App from './App.vue'
      

      Unfortunately, boot files did not work for this because in the generated client-entry.js, they are imported immediately after app.js (and therefore App.vue).

      posted in Help
      H
      hamiltoes