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

    Vuex Interop

    Help
    2
    2
    830
    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.
    • J
      johnorford last edited by

      Are there any Vuex interop examples people can point me to?

      I have come up with several non-optimal approaches, and am getting confused.

      E.g. I suspect something like this should work, but does not…

      <q-select v-model="mutlipleSelect" ... />
      
      //computed
      mutlipleSelect: {
            get() { return [... this.$store.mutlipleSelect] },
            set(xs) { this.$store.dispatch('updateMutlipleSelect', xs) }
          }
      
      1 Reply Last reply Reply Quote 0
      • D
        daveline last edited by

        any luck with this? i am doing something similar, but when i have the vuex strict, i get the following error.

        [Vue warn]: Error in callback for watcher “function () { return this._data.$$state }”: “Error: [vuex] Do not mutate vuex store state outside mutation handlers.”

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