0.9.0
The One With Hooks
This is a huge release that reworks much of IDOM to use a React-like Hooks API.
The documentation has been updated to reflect these changes so it's probably best to check the README to learn about the state of the project. In short though...
- Most of React's hooks have been faithfully re-implemented in Python (a new "Life Cycle Hooks" section reflects these additions).
- The only "basic hook" missing from this release is
useContext
given that its most useful in sprawling code-bases. Given that IDOM has no such usage ause_context
hook isn't useful yet. - Much of IDOM's internal logic for computing and transmitting layout updates was reworked.
- Updates are no longer computed in parallel and distributed as completed, instead they an executed serially (this may be reverted in a future version). While has negative performance implications in some cases it simplified logic.
- Updates are now transited over the wire using the JSON-patch format since the old format assumed on targeted updates would be triggered by imperative code.
Side Notes
- it's now much easier to set up an layout server in a Jupyter notebook - just use
idom.widgets.jupyter.init_display(...)