mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[DOC] store,hooks: useState/useStore should return object
or array closes #404
This commit is contained in:
committed by
Aaron Bohy
parent
2279dafbec
commit
5911c8e3f6
@@ -181,6 +181,9 @@ class Counter extends owl.Component {
|
||||
}
|
||||
```
|
||||
|
||||
It is important to remember that `useState` only works with objects or arrays. It
|
||||
is necessary, since Owl needs to react to a change in state.
|
||||
|
||||
### `onMounted`
|
||||
|
||||
`onMounted` is not a user hook, but is a building block designed to help make useful
|
||||
|
||||
Reference in New Issue
Block a user