Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Unidirectional Data Flow

No description
by

lior paz

on 10 March 2016

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Unidirectional Data Flow

Flux
• Actions – Helper methods that facilitate passing data to the Dispatcher
• Dispatcher – Receives actions and broadcasts payloads to registered callbacks
• Stores – Containers for application state & logic that have callbacks registered to the dispatcher
• Controller Views – grab the state from the
Stores
and display it
The Components
publish/subscribe handler that broadcasts payloads to registered callbacks.
Unidirectional Data Flow
The model + getters and setters
Action Flow
View
Action + payload
emits change events
Listens to Store Change
Retrieves state from Store
API
{
action_name: string,
data: object
}
update stores using Actions
Libs
https://github.com/deloreanjs
https://github.com/reflux/refluxjs
ReFlux
Multiple stores
Stores talk with each other on change
Each action is a dispatcher
you
hello
there
how are
Full transcript