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
selfsame edited this page Jan 18, 2015
·
4 revisions
Components can declare lifecycle functions for transforming their values by using the following decorators. Note that the arguments are the component values, meant to be transformed and returned.
@construct
def foo(v): return v
@merge
def foo(a, b): return a+b
@serialize
def foo(v): return v
@deserialize
def foo(v): return v