mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[FIX] docs: some spelling corrections
This commit is contained in:
committed by
Géry Debongnie
parent
74bd119bf5
commit
b7b0e38fca
@@ -225,7 +225,7 @@ to be called in the constructor.
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
- **`style`** (string, optional): it should be the return value of the [`css tag](tags.md#css-tag),
|
- **`style`** (string, optional): it should be the return value of the [`css` tag](tags.md#css-tag),
|
||||||
which is used to inject stylesheet whenever the component is visible on the
|
which is used to inject stylesheet whenever the component is visible on the
|
||||||
screen.
|
screen.
|
||||||
|
|
||||||
@@ -425,7 +425,7 @@ likely via a change in its state/props or environment).
|
|||||||
|
|
||||||
This method is not called on the initial render. It is useful to interact
|
This method is not called on the initial render. It is useful to interact
|
||||||
with the DOM (for example, through an external library) whenever the
|
with the DOM (for example, through an external library) whenever the
|
||||||
component was patched. Note that this hook will not be called if the compoent is
|
component was patched. Note that this hook will not be called if the component is
|
||||||
not in the DOM.
|
not in the DOM.
|
||||||
|
|
||||||
Updating the component state in this hook is possible, but not encouraged.
|
Updating the component state in this hook is possible, but not encouraged.
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ a rendering that is no longer relevant, restart it, reuse it in some cases.
|
|||||||
But even though using concurrency is quite simple (and is the default behaviour),
|
But even though using concurrency is quite simple (and is the default behaviour),
|
||||||
asynchrony is difficult, because it introduces an additional dimension that
|
asynchrony is difficult, because it introduces an additional dimension that
|
||||||
vastly increase the complexity of an application. This section will explain
|
vastly increase the complexity of an application. This section will explain
|
||||||
how Owl manages this complexity, how concuurent rendering works in a general way.
|
how Owl manages this complexity, how concurrent rendering works in a general way.
|
||||||
|
|
||||||
## Rendering Components
|
## Rendering Components
|
||||||
|
|
||||||
@@ -120,7 +120,7 @@ Here is what Owl will do:
|
|||||||
1. hook `willUpdateProps` is called on `D` (async)
|
1. hook `willUpdateProps` is called on `D` (async)
|
||||||
2. template `D` is rerendered
|
2. template `D` is rerendered
|
||||||
- component `F` is created:
|
- component `F` is created:
|
||||||
1. hook `willStart` is called on `E` (async)
|
1. hook `willStart` is called on `F` (async)
|
||||||
2. template `F` is rendered
|
2. template `F` is rendered
|
||||||
|
|
||||||
3. `willPatch` hooks are called recursively on components `C`, `D` (not on `F`,
|
3. `willPatch` hooks are called recursively on components `C`, `D` (not on `F`,
|
||||||
|
|||||||
@@ -40,8 +40,8 @@ all templates.
|
|||||||
Whenever a root component `App` is mounted, Owl will setup a valid environment by
|
Whenever a root component `App` is mounted, Owl will setup a valid environment by
|
||||||
following the next steps:
|
following the next steps:
|
||||||
|
|
||||||
- take the `env` object defined on `App.env` (if no `env` was explicitely setup,
|
- take the `env` object defined on `App.env` (if no `env` was explicitly setup,
|
||||||
this will be return the empty `env` object defined on `Component`)
|
this will return the empty `env` object defined on `Component`)
|
||||||
- if `env.qweb` is not set, then Owl will create a `QWeb` instance.
|
- if `env.qweb` is not set, then Owl will create a `QWeb` instance.
|
||||||
|
|
||||||
The correct way to customize an environment is to simply set it up on the root
|
The correct way to customize an environment is to simply set it up on the root
|
||||||
|
|||||||
Reference in New Issue
Block a user