Skip to content

v0.22.0

Compare
Choose a tag to compare
@ged-odoo ged-odoo released this 01 Oct 19:14
· 948 commits to master since this release

0.22.0

The hooks release.

This release contains a few breaking changes necessary to improve the API. It is
actually very nice to work with hooks in Owl.

The main breaking change is that now components do not have a special state
key, which is observed. If a component needs reactive state, it has to explicitely
import the useState hook:

class C extends Component {
    state = useState({some: 'value'});
    ...
}

Changes

  • component: reorganize the rendering system with the notion of fiber
  • component: support fully dynamic t-component directives
  • component tags: allow injecting values in xml tag string
  • qweb fix: properly support svg
  • components: add hooks mechanism (breaking change)
  • hooks: implement useRef hook (breaking change)