Skip to content

Migrate to vue3 #8618

@max-nextcloud

Description

@max-nextcloud

Todo

this is a rough sketch based on collectives migration...

  • upgrade dependencies to Vue3
  • migrate from Vue.extend() to createApp()
  • migrate <var>.sync to v-model:<var>
  • move from beforeDestroy to beforeUnmount
  • don't use Vue.set() and this.$set() and this.$delete()
  • key attribute in v-for component
  • migrate to vue3 eslint rules
  • declare emitted events in components
  • call function instead of expression
  • don't mutate property
  • use markRaw for Text editor instances
  • fix updating path and migrate to typescript
  • pass to Text as custom web component
  • use beforeUnmount instead of unmounted for garbage collection
  • rename child components to NcAction*
  • in Vue 3, it's app.config.globalProperties.$router
  • turn computed inner into arrow functions
  • migrate to modelValue and saveguard against racy blur
  • use null instead of false for removing href attribute
  • await router.push as it's async now

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions