Skip to content

Instantly share code, notes, and snippets.

@abdennour
Last active August 5, 2017 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abdennour/0cfb8ce2c9b115a74de4d2d1d44e8297 to your computer and use it in GitHub Desktop.
Save abdennour/0cfb8ce2c9b115a74de4d2d1d44e8297 to your computer and use it in GitHub Desktop.
Sub/Pub pattern implementation between Mufa & Redux
Mufa Redux
Publish fire or pub dispatch
Subscribe on or sub subscribe
Unsubscribe off(subscribe_return) subscribe_return()
Event String identifies the event Literal object that must has type property which identifies the event (action)
Message Argument for each message fire(event_name, msg1,..., msgn) Property for each message in the action {type: event_name, msg1, msg2,... msgn}
NPM npm install mufa npm install redux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment