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
EDIT: Turns out this syntax is not deprecated, it just needs to be fixed. 馃槂
When using this deprecated directive syntax:
Vue.directive('my-directive',function(value){// this function will be used as update()})
The errors thrown are:
vue.js:2168 [Vue warn]: Error during component render (found in root instance)
vue.js:3479 Uncaught TypeError: Bind must be called on a function
These are pretty vague, so wasn鈥檛 sure if we wanted to throw a better warning, similar to when users don鈥檛 have a root element in their template for example. Maybe something like:
[Vue warn]: Directive definition must be an object (Function definition is deprecated)
The text was updated successfully, but these errors were encountered:
@yyx990803 Good to know! Edited the issue. The reason I thought it was deprecated is because update is no longer called after bind, which seemed to eliminate the use case for this feature. Or is that a bug too?
When using this deprecated directive syntax:
The errors thrown are:
These are pretty vague, so wasn鈥檛 sure if we wanted to throw a better warning, similar to when users don鈥檛 have a root element in their template for example. Maybe something like:
The text was updated successfully, but these errors were encountered: