Files
owl/doc
Géry Debongnie d74b5a03db [IMP] component: add props on root components
This is a partial revert of commit 7d249d6f09.

The reason is that this changes made it much harder to unit test
components.  Before, we could simply instantiate a component
like this:
const my|Comp = new MyComponent(null, props);

and then simply test it.  This commit reestablish that possibility.
2019-11-01 09:03:27 +01:00
..
2019-10-29 16:02:51 +01:00

🦉 OWL Documentation 🦉

Reference

Learning Resources

Miscellaneous

Architecture

This section explains in more detail the inner workings of Owl. It is targeted for developers working on Owl itself.

Owl Content

Here is a complete visual representation of everything exported by the owl global object (so, for example, Component is available at owl.Component, and EventBus is exported as owl.core.EventBus):

Component                               misc
Context                                     AsyncRoot
QWeb                                    router
Store                                       Link
useState                                    RouteComponent
config                                      Router
    mode                                tags
core                                        xml
    EventBus                            utils
    Observer                                debounce
hooks                                       escape
    onWillStart                             loadJS
    onMounted                               loadFile
    onWillUpdateProps                       shallowEqual
    onWillPatch                             whenReady
    onPatched
    onWillUnmount
    useContext
    useState
    useRef
    useSubEnv
    useStore
    useDispatch
    useGetters

Note that for convenience, the useState hook is also exported at the root of the owl object.