Closed youpsla closed 4 years ago
I typically just define an async func get()
and invoke that from the request handler.
Thanks for your answer. That's what I have done so far. Just wondering if there was a solution for putting the call inside the component.
Hello, I would like to launch a a func for collecting datas from the DB and assigning to component attribute at widget initialization. Currently, I have this working by launching my function in my main.py file in the tornado RequestHandler. I would like to make my component containing the maximum code it use.
I haven't seen something like
on_prepare
which could be usefull (prepare)Any idea ?
Regards