Skip to content

Latest commit

 

History

History
executable file
·
97 lines (63 loc) · 1.5 KB

stores.md

File metadata and controls

executable file
·
97 lines (63 loc) · 1.5 KB

Flux Stores

TaskStore

Holds all persisted task data.

Actions:
  • receiveAllTasks
  • receiveSingleTask
  • removeTask
Listeners:
  • TasksIndex (passes to TaskIndexItem via props)
  • TaskDetail (passes to children via props)

TaskEditorStore

Holds un-persisted task data to send to the API.

Actions:
  • receiveTaskEditorParams
Listeners:
  • TaskIndexItem
  • TaskDetail (passes to children via props)

ProjectStore

Holds all persisted project data.

Actions:
  • receiveAllProjects
  • receiveSingleProject
  • removeProject
Listeners:
  • ProjectIndex

ProjectEditorStore

Holds un-persisted project data to send to the API.

Actions:
  • receiveProjectEditorParams
Listeners:
  • ProjectEditor

TaskSearchStore

Holds search parameters to send to the API.

Actions:
  • receiveTaskSearchParams
Listeners:
  • TaskSearch

TaskSearchSuggestionStore

Holds typeahead suggestions for task search.

Actions:
  • receiveTaskSearchSuggestions
Listeners:
  • TaskSearchSuggestions

InboxStore

Holds all inbox items.

Actions:
  • receiveAllInboxItems
  • removeAllInboxItems
Listeners:
  • InboxIndex (passes to InboxIndexItem via props)

UiStore

Holds hovered/clicked items.

Actions:
  • receiveMouseEnter
  • receiveMouseExit
  • receiveClick
  • removeClick
Listeners:
  • TaskIndexItem
  • NavBar
  • ProjectIndex
  • TaskSearch
  • other elements with non-CSSable hover/click states