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

    Adding store later after create project

    CLI
    2
    3
    174
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      samodraland last edited by

      Hi All,
      Regarding this question https://forum.quasar-framework.org/topic/1953/adding-a-store-vuex-later I still don’t get the answer.
      How to solve this problem properly instead of re-init new project like what I do if I want to init/add vuex store later (don’t get me wrong, it’s not quasar new store store_name). Doing like what I did is non-sense

      metalsadman 1 Reply Last reply Reply Quote 0
      • metalsadman
        metalsadman @samodraland last edited by

        @samodraland no automated way atm, but you can just copy the boilerplate here https://quasar.dev/quasar-cli/vuex-store#Adding-a-Vuex-Module, then save it in the src/store/index.js file.

        S 1 Reply Last reply Reply Quote 0
        • S
          samodraland @metalsadman last edited by

          @metalsadman I have tried before and all states in the store are undefined, except if I re-init project with included store

          1 Reply Last reply Reply Quote 0
          • First post
            Last post