Skip to content

agonqorolli/controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pure JavaScript pattern for state management

This JavaScript pattern offers:

  1. One object to rule them all!
  2. No third complex or semi-complex libraries to manage the app state.
  3. Very intuitive and easy-to-learn curve, compare to thick boilerplates of other libraries.
  4. Works in any framework that uses JavaScript.
  5. 28 JavaScript lines to deliver a fully functional state management tool.
  6. There are no possible memory leaks on subscriptions, because in emit() is implemented an automatic check for unmounted Components. While in such cases emit() executes another branch, which simply removes the corresponding component from core.subscribers object.

A detailed explanation can be found in a Medium article here. While the demo is hosted in surge here.

About

Pure JavaScript pattern for state management

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published