Skip to content

A project to bring the power and flexibility of the Bloc pattern to TypeScript

License

Notifications You must be signed in to change notification settings

andyl-astardigital/bloc_ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bloc_ts

A small, concise project to bring the power and flexibility of Bloc patterns to TypeScript.

What is BLoC: https://www.didierboelens.com/2018/08/reactive-programming-streams-bloc/

Inspired by the brilliant flutter_bloc: https://pub.dev/packages/flutter_bloc

NPM: https://www.npmjs.com/package/bloc_ts

See example directory: https://github.com/andyl-astardigital/bloc_ts/tree/master/lib/example

Components (React/Angular/Others) communicate with the business logic classes via firing Events (which can contain information). The components listen for the Blocs to emit new States and update the UI based on those States. In this case several State updates can be fired for a given Event allowing powerful async behaviour while keeping Business Logic separated from UI (and therefore re-usable) .

About

A project to bring the power and flexibility of the Bloc pattern to TypeScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published