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

    At Quasar framework, how to add the chokidar.watch value to Vuex Store?

    Framework
    typescript vue quasar vuex
    2
    2
    233
    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.
    • forevereffort
      forevereffort last edited by

      I need the file watcher at Quasar framework. the file is able to change. so when the file is changed, I need to create the new file watcher and close the old one. for this process, I am going to define the global file watcher variable and the Vuex Store is good for the global variable. I made my code like the following image.

      Apy4s.png

      but unfortunately my code is working with Warning like the following image.

      OIeqN.png

      I want to fix the following 2 problems.

      fix the my code tslint issue
      fix Vuex Store warn
      

      please help me!!!

      Regards

      dobbel 1 Reply Last reply Reply Quote 0
      • dobbel
        dobbel @forevereffort last edited by

        @forevereffort

        You’re changing state outside of a mutation. Where that happens is unclear from the warning logs. You’ll have to investigate that yourself more.

        maybe:

        state.fileWatcher.close()
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post