yoyo930021 / vc2c

The vc2c project can convert vue class APIs to vue composition APIs in Vue.js components written in Typescript.
https://yoyo930021.github.io/vc2c/
MIT License
87 stars 20 forks source link

fix: beforeDestroy/destroyed mappings #35

Closed jaredmcateer closed 1 year ago

jaredmcateer commented 2 years ago

This fixes the mappings for beforeDestroy and destroyed, they should be onBeforeUnmount and onUnmounted.

Refactored how the mappings work so they it doesn't manipulate the string but just uses a Map. This slightly simplifies the convertIntervalHook function

yoyo930021 commented 1 year ago

:tada: This PR is included in version 2.1.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: