Skip to content

0.4.0

Latest

Choose a tag to compare

@Mytrill Mytrill released this 16 Dec 22:17
· 5 commits to master since this release

Added Lifecycle events on modules:

  • onWire() is called when a module is wired by frapp(). Either on startup or whenever it is added to the app via update(). This method is called on the deepest modules first, and then higher up in the tree, so that when a module's onWire() is called, all its sub-modules have had their onWire() called already.
  • onRemove() is called when a module is removed from the app via update(). This method is called on the highest modules first, so that when a module's onRemove() is called, it's sub-modules are still fully functionals.

The router now uses the lifecycle events instead of init() and remove().