This repository has been archived by the owner on Dec 26, 2022. It is now read-only.
v0.6.0
v0.6.0
This release is testable, but still not 100% production ready.
Changelog:
- The library now uses
RecursiveOrchestrator
as the engine of the library. - The App lifecycle is now divided into
steps
managed by theorchestrator
and no longer usesevent-based
updates:- Computed
changes
are now bundled together and executed in a single time. Hooks
are now bundled.Component-Styles
are now recursively collected.
- Computed
- Irresponsive updates are now detected and has their impact buffered on the App state.
- Improved how errors are displayed, with the addition of giving possible reasons for
recursive-generated
errors. updateAfter
is no longer deprecated : it now bundles the changes made inside itscallback
and send anupdate-request
to theRecursiveOrchestrator
.RecursiveEvents
is now deprecated.- Introduced more feature to toy with regarding the
setState
method : It now return an array of5
elements and have4
parameters:- Parameters:
uid
unique identifier, must be unique generally.value
initial value.onInit
executes after the state has been created, allow the user to fetch dataasynchronously
like fetching data or making an api call.beforeDestroyed
executed just before the removal of the state. Allow the user to make some cleaning like unsubscribing from services.
- Returns :
value
the value of the state at the current rendered state.setValue
is a function that change the value of the state and update the DOM.preValue
the previous value. initially, it is set toundefined
.exists
is a function that returns if the state still exists or not.live
is a function that returns the live value of the state, could be used immediately aftersetValue
and it will return the updated value.
- Parameters:
- States are now cleaned when they are out of context.
If you find this project interesting or have any suggestion, feel free to leave a comment/Issue.