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
Add new API along side current class based one. It would similar to Vue composables or React hooks, where you would delcare all in a special init function.
Example:
exportdefineComponent((ctx)=>{constparam=useDataParam('param');ctx.$on('click',()=>{// ...})onInit(()=>{// called on initconsole.log(param.value)})onBeforeDestroy(()=>{// ...})onDestroy(()=>{// ...})})
The text was updated successfully, but these errors were encountered:
Add new API along side current class based one. It would similar to Vue composables or React hooks, where you would delcare all in a special init function.
Example:
The text was updated successfully, but these errors were encountered: