0.12.1
- Improved the updating of text nodes by directly setting
element.nodeValue
, which reduces unnecessary garbage collection in scenarios like DBMon. Thanks to @andyrj for this improvement.set element.nodeValue = node
- Updated the
update
function in thunks to accept a reducer function, enhancing its usefulness in asynchronous processes. This allows for state adjustments during an action's execution.actions: { someAsyncAction(state) { return update => { longTaskWithCallback(someData, () => update(state => ({ value: state.value + 1 })) ) } } }
- Enabled mixins without options to be defined as simple objects. This simplifies the extension of application state, actions, or events.
const simpleMixin = { events: { load() { console.log("It works!") } } }
Acknowledgements
Thanks to @okwolf, @Swizz, @zaceno, @lukejacksonn, @SkaterDad, and @andyrj for their contributions.