- Source:
Methods
(static) liveReducer(state, action) → {state}
- Source:
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
liveCountdown |
number | string |
<optional> |
''
|
|
previousSecond |
number |
<optional> |
0
|
Indicate previous second when scores data is calculated |
liveDecrement |
number |
<optional> |
0
|
Indicate number of seconds decremented in one real second |
scores |
Array |
<optional> |
null
|
|
blink |
Array |
<optional> |
null
|
|
setupLive |
boolean |
<optional> |
false
|
Parameters:
| Name | Type | Description |
|---|---|---|
state |
object | Contain initial and final state of data |
action |
object | Return the action object |
Returns:
- Type
- state
(inner) SET_BLINK()
- Source:
[Received Data] This action is use to reset blink animation
(inner) SET_LIVE_DATA()
- Source:
[Received Data] This action is use to setup live data
(inner) SET_LIVE_DATA()
- Source:
[Action Creator] This action is use to reset live data
Example
resetLiveData(payload)