Please enable JavaScript.
Coggle requires JavaScript to display documents.
TaskListState (UIState (SelectedItems, HighlighedItems, HoveredItems,…
TaskListState
UIState
SelectedItems
HighlighedItems
HoveredItems
FocusedItems
CurrentEditingItem
CreationFormVisibility
CreationForm
DataState
Tasks
Folders
Groups
Tasks
Folders
Sticky
TaskListOptions
Filtes
Sorting
ViewType
...
ChangedItems
Reducers
DnD
Online Updates
Command Updates
Options Updates
TaskListDataSource
getRoot
ListStateConverter -> GrouperTreeCache
Конвертация стейта в ListItem и перерисовка WrikeList с помощью GrouperTreeCache
GrouperTreeCache
Update GrouperTreeCache by State
ChangedItems
Render
getItemsRange
FetchTasksAction
TaskListComponent
onStateChange -> changeDetection
dataSource.fireStateChange
State -> TaskListState
Immutable State
Single updates (addItem, removeItem, moveItem, etc.)
State Converter (all tree)
GrouperTreeCache
Wrike List
TaskListDataLoadService
loadData
LoadDataAction
fireStateChange(updateItems:
true
)
State Single Updates
fireStateChange(updateItems:
false
)
Верхнеуровневая схема - 1 итерация
GrouperTreeCache
State Example
First Data Loading