Skip to content
This repository has been archived by the owner on Dec 26, 2022. It is now read-only.

v0.6.0

Compare
Choose a tag to compare
@RiadhAdrani RiadhAdrani released this 01 Feb 01:13
· 173 commits to master since this release

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 the orchestrator and no longer uses event-based updates:
    • Computed changes are now bundled together and executed in a single time.
    • Hooks are now bundled.
    • Component-Styles are now recursively collected.
  • 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 its callback and send an update-request to the RecursiveOrchestrator.
  • RecursiveEvents is now deprecated.
  • Introduced more feature to toy with regarding the setState method : It now return an array of 5 elements and have 4 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 data asynchronously 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 to undefined.
      • 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 after setValue and it will return the updated value.
  • 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.