Géry Debongnie
4a971f2963
[IMP] hooks: introduce useChildSubEnv and change useSubEnv
2022-01-27 10:35:06 +01:00
Géry Debongnie
d160c4a628
[FIX] useEffect: can depend on dom dependencies
...
Because the dependencies are now computed in patched.
2021-12-22 10:47:28 +01:00
Géry Debongnie
0b1c4dd4ef
[IMP] app: improve API, small refactoring
2021-12-21 12:12:48 +01:00
Géry Debongnie
cca8438d38
[REF] components: remove .el
2021-12-20 14:43:21 +01:00
Lucas Perais (lpe)
144d4a253c
[FIX] hooks: useSubEnv supports arbitrary descriptors in env
...
Before this commit, when defining a getter in the env passed to useSubEnv,
the value was read, losing the definition of the property.
After this commit, declaring a getter in the env works as expected:
the property stays a getter.
2021-12-03 08:06:29 +01:00
Bruno Boi
6ae92fa4b3
[IMP] hooks: reintroduce useExternalListener
2021-11-15 16:15:14 +01:00
Bruno Boi
3ceb118ace
[IMP] hooks: introduce useEffect
...
Co-Authored-By: Samuel Degueldre <sad@odoo.com >
2021-11-15 16:07:25 +01:00
Bruno Boi
d7403871fc
[IMP] env: env is now frozen, useSubEnv does not affect user env
2021-11-15 13:21:46 +01:00
Géry Debongnie
fb6aab8b70
[FIX] component: fix lifecycle order
2021-11-15 09:35:13 +01:00
Samuel Degueldre
a122a94180
[IMP] qweb/components: remove t-ref on components
...
Refs to component expose a lot of implementation details that should be
private to parents. Parent to child communication should go through
props.
2021-11-10 13:36:13 +01:00
Mathieu Duckerts-Antoine
6e0834ce5e
[IMP] component,qweb: props validation
...
We re-add the possibility to validate props when dev mode is active.
No change in the API right Now. The dev mode is activated via the
configure method of App class.
2021-10-22 12:46:57 +02:00
Samuel Degueldre
e01fe301c0
[IMP] *: re-add a bunch of tests
2021-10-21 10:34:54 +02:00