My app quite heavily writes to vuex at times, and since setState is calling json.stringify and writing to localstorage, is there any harm debouncing the final write until things settle?
If writing to LocalStorage becomes a performance bottleneck, I would suggest revisiting your application architecture. I would definitely not recommend doing async writes to prevent state mismatch issues.
My app quite heavily writes to vuex at times, and since setState is calling json.stringify and writing to localstorage, is there any harm debouncing the final write until things settle?
Here's an example of what I mean: