Breaking Changes:
- Intermediate: The component lifecycle has changed to only render once on the first component mount instead of every mount. This means that
render()
functions will now only be called once per component instance. The newonAdded()
method can be used to
run code on every mount from now on. Please Refer to the documentation for more details. - Advanced:
rx.derive
no longer memoizesobject
s by default. Some derived state may therefore update more frequently.
Added:
h.foreach
helper to render multiple elements from a reactive value. This was kind of possible previously by just usingrx.derive
orrx.map
, buth.foreach
allows skipping re-renders to retain focus. The idea is very similar to key in React or trackBy in Angular.
Fixed:
- You can use
Component
s as props and fields. Previously they were erroneously treated asSubscribable
because they have asubscribe
method. - The
rx.fromEvent
operator is now shared by default. This should at least slightly reduce the amount of active event listeners.
Full Changelog: v0.0.3...v0.0.4