Search⌘ K

Solution: Constant Types

Understand how to apply constant types in the Vuex todos module for clearer and maintainable state management. Learn how to replace string literals with imported constants across getters, actions, and mutations, and update mapping in components for clean code.

We'll cover the following...

Solution

Your task was to use constant types for the todos module and to access its values and methods in the App.vue file. Here are the required changes:

For the src/store/modules/todos/todosTypes.js ...