Skip to content
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
Clone this wiki locally