Géry Debongnie
bd98d4d0d0
[IMP] component: disallow calling hooks outside of setup
...
(and constructor)
Doing so could cause strange and difficult bugs
2022-02-11 10:46:44 +01:00
Michael (mcm)
cccb379377
[FIX] bind lifecycle callbacks to component
...
Before this commit, some of the callbacks were bound to the component
and some were not.
This commit makes all the callbacks bind to the component.
2022-02-11 10:46:44 +01:00
Lucas Perais (lpe)
c1a973a4d8
[FIX] component: error handling in class inheritance
...
Before this commit, class inheritance when using the onError hook was unclear nay wrong.
After this commit, error handlers are called from the bottom up in the inheritance hierarchy.
If a handler doesn't rethrow the error, the handling stops there and no other handler is called.
If a handler does rethrow, the handlers declared in a parent class are executed.
2022-02-11 10:46:44 +01:00
Géry Debongnie
779003e715
[REF] component: remove onDestroyed, implement onWillDestroy
2022-02-11 10:46:44 +01:00
Géry Debongnie
629b379ea9
[IMP] components: rename onRender->onWillRender, add onRendered
2022-02-11 10:41:18 +01:00
Géry Debongnie
af80cefa76
[FIX] component: fix lifecycle order
2022-02-11 10:41:18 +01:00
Lucas Perais (lpe)
e0c0306acd
[IMP] component: re-introduce error handling in lifecycle
2022-02-11 10:41:18 +01:00
Samuel Degueldre
ced5d0f69f
[IMP] *: re-add a bunch of tests
2022-02-11 10:20:09 +01:00
Géry Debongnie
8c71d99e5f
[MOV] move lifecycle_hooks into component/
2022-02-11 10:20:09 +01:00