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
I've started to write a computed decorator that behave like computed variables in vue, and I'm wondering whether this could be a welcome addition to vuejs?
It is based on traitlets.ObserveHandler. To make it work I've also borrowed the as_refs and create_ref_and_observe functions from VueTemplateWidget.py. Exposing those functions or integration this decorator in ipyvue would avoid code duplication.
Contrary to vuejs, dependencies must be explicitly listed.
I've started to write a
computed
decorator that behave like computed variables in vue, and I'm wondering whether this could be a welcome addition to vuejs?It is based on
traitlets.ObserveHandler
. To make it work I've also borrowed theas_refs
andcreate_ref_and_observe
functions fromVueTemplateWidget.py
. Exposing those functions or integration this decorator in ipyvue would avoid code duplication.Contrary to vuejs, dependencies must be explicitly listed.
Usage example:
vue_computed.py.gz
The text was updated successfully, but these errors were encountered: