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
This issue frequently arises within VueJS models since you are meant to access the state (the data object) via this besides in special cases like when the scope has changed and you have to use a variable self as above. For example, it just happened to one of my event handlers too.
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered:
I have a feeling it's because an assignment to this is expected to happen inside a constructor function? It's just unfortunate that I have this be pretty commonplace in VueJS code where you interact with the data object so often in that way.
Steps to Reproduce:
created
, or any of your own withinmethods
, use this code:created
will be highlighted as a class and conversion from a constructor function to a class will be suggested.Workaround is to instead use this code:
This issue frequently arises within VueJS models since you are meant to access the state (the
data
object) viathis
besides in special cases like when the scope has changed and you have to use a variableself
as above. For example, it just happened to one of my event handlers too.Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: