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
When a component has the functional attribute, it would be nice if Vetur recognized this and showed an error if the developer has data or computed objects in the exported script, as functional components have no state.
I don't know enough about functional components to know if there are other restrictions around lifecycle events, watchers, etc.
Info
Problem
When a component has the
functional
attribute, it would be nice if Vetur recognized this and showed an error if the developer hasdata
orcomputed
objects in the exported script, as functional components have no state.I don't know enough about functional components to know if there are other restrictions around lifecycle events, watchers, etc.
Reproducible Case
The text was updated successfully, but these errors were encountered: