DEV Community

Discussion on: 💡 Vue Typescript State Management : We can do better than “isLoading” in 2022

Collapse
 
ju-tngh profile image
Julien Monisnap

Thanks a lot for the comment ! :)

Indeed it's not a time saver, you don't use less code. However, the proposed way is, in my opinion, for easier readability, extensibility and consistency by using a single variable with a better naming to handle a common "async action state", including the error state that is sometime forgotten 😅