At Quasar framework, how to add the chokidar.watch value to Vuex Store?
-
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.
but unfortunately my code is working with Warning like the following image.
I want to fix the following 2 problems.
fix the my code tslint issue fix Vuex Store warn
please help me!!!
Regards
-
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()