- loadData
Load initial data into state
- Session()
Interface for retreiving relational data from the store.
Session instance is passed to the reducer functions annotated with @data. Each
- data()
Mark reducer action impl as data, so it would be wrapped in restore.Sesssion call To be used with actionObject
ActionObject should have item name data
Instances of this type will be sent server side to sync backend model
Param | Type | Description |
---|---|---|
type | string |
Operation type, one of CREATE, UPDATE, DELETE |
table | string |
name |
fields | Object |
for the operation |
Kind: global class
Provides access to entities of specific type in a session.
Instances of Table are constructed on session start. Entities retreived via Table are flushed on session end.
Param | Type | Description |
---|---|---|
rows | Array |
from the store state |
tableName | string |
Return updated data
Kind: inner method of Table
Load initial data into state
Interface for retreiving relational data from the store.
Session instance is passed to the reducer functions annotated with @data. Each
Mark reducer action impl as data, so it would be wrapped in restore.Sesssion call To be used with actionObject
ActionObject should have item name data
Kind: global function