You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run vue-tsc and check typelint since I believe there is room for improvements in general
Then:
Test that everything works
Re-test that everything works
Go to step 1
Clean up and enhancements
This section maybe is not necessary
Move everything to setup composition api
Upgrade Eslint to v9 with Flat config
Force the definition of props and emits via types defineProps<{ prop: string[] }>() instead of defineProps({ prop:{ type: Array as PropType<string[]>, required: true })
Consume useRouter directly. Remove the useRouter in router.ts
Consume nextTick directly. Remove the proxy nextTick.
Update to Vue 3.5.0
Use useTemplateRef(?)
This list is highly opinionated, but feel free to edit/add/remove items. Once we have a clear path, we can start taking small steps towards Vue 3 :)
The text was updated successfully, but these errors were encountered:
I think we can start defining the path of migration and what steps need to be taken towards migrating the codebase to Vue 3.
In this issue we can define the progress and steps we need to take. Not all of the steps are fully necessary but they are nice to have.
There are 3 phases to the project: "Before migrating to Vue 3.0.0", "Switching to Vue 3.0.0" and "Clean up and Vue 3.5.0"
Before migrating to Vue 3.0.0
context.root
from every component #256addRoute
#262useRouter().currentRoute
. InsteaduseRoute()
Replace.currentRoute
withuseRoute()
#265watch()
)vite-vue-2
. Update build scripts?typecheck
command and solve types issuesSwitching to Vue 3.0.0
vue-tsc
and check typelint since I believe there is room for improvements in generalThen:
Clean up and enhancements
This section maybe is not necessary
defineProps<{ prop: string[] }>()
instead ofdefineProps({ prop:{ type: Array as PropType<string[]>, required: true })
useRouter
directly. Remove theuseRouter
inrouter.ts
nextTick
directly. Remove the proxynextTick
.useTemplateRef
(?)This list is highly opinionated, but feel free to edit/add/remove items. Once we have a clear path, we can start taking small steps towards Vue 3 :)
The text was updated successfully, but these errors were encountered: